mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_mqtt.git
synced 2025-01-11 03:05:07 +00:00
Prep for bluemix deployment
This commit is contained in:
parent
bac675edcd
commit
9d93f54621
@ -84,7 +84,9 @@ var mqttClient = function() {
|
|||||||
var address = '.messaging.internetofthings.ibmcloud.com';
|
var address = '.messaging.internetofthings.ibmcloud.com';
|
||||||
var appKey = '9txJEf3Cjy7hkSOvkv';
|
var appKey = '9txJEf3Cjy7hkSOvkv';
|
||||||
var prefix = 'iot-2/type/mDot/id/';
|
var prefix = 'iot-2/type/mDot/id/';
|
||||||
var deviceId = ['CENSIS-LoRa-1','CENSIS-LoRa-2','CENSIS-LoRa-3','CENSIS-LoRa-4','HIE-mobile-1','HIE-mobile-2','HIE-smart-campus-1','HIE-smart-campus-2','HIE-smart-campus-3','HIE-smart-campus-4','HIE-smart-campus-5','HIE-smart-campus-6','HIE-smart-campus-7','HIE-mDot-1'];
|
//var deviceId = ['CENSIS-LoRa-1','CENSIS-LoRa-2','CENSIS-LoRa-3','CENSIS-LoRa-4','HIE-mobile-1','HIE-mobile-2','HIE-smart-campus-1','HIE-smart-campus-2','HIE-smart-campus-3','HIE-smart-campus-4','HIE-smart-campus-5','HIE-smart-campus-6','HIE-smart-campus-7','HIE-mDot-1'];
|
||||||
|
|
||||||
|
var deviceId = ['CENSIS-LoRa-1','CENSIS-LoRa-2','CENSIS-LoRa-3','CENSIS-LoRa-4','HIE-mobile-1----','HIE-mobile-2----','HIE-smart-campus-1','HIE-smart-campus-2','HIE-smart-campus-3','HIE-smart-campus-4','HIE-smart-campus-5','HIE-smart-campus-6','HIE-smart-campus-7','HIE-mDot-1'];
|
||||||
|
|
||||||
|
|
||||||
//Var subscribeTopic = prefix + deviceId + '/evt/+/fmt/json';
|
//Var subscribeTopic = prefix + deviceId + '/evt/+/fmt/json';
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
var pgp = require('pg-promise')();
|
var pgp = require('pg-promise')();
|
||||||
|
|
||||||
|
/*
|
||||||
var cn = {
|
var cn = {
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 5432,
|
port: 5432,
|
||||||
@ -16,6 +17,18 @@ var cn = {
|
|||||||
user: 'postgres',
|
user: 'postgres',
|
||||||
password: ''
|
password: ''
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
// ElephantSql settings
|
||||||
|
|
||||||
|
var cn = {
|
||||||
|
host: 'qdjjtnkv.db.elephantsql.com',
|
||||||
|
port: 5432,
|
||||||
|
database: 'gxwxnqoh',
|
||||||
|
user: 'gxwxnqoh',
|
||||||
|
password: 'LN5Uk39GNcBCxCHv5dfL8aKuowFT6WKG'
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
exports.dbConnection = pgp(cn);
|
exports.dbConnection = pgp(cn);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user