21 lines
399 B
JavaScript
21 lines
399 B
JavaScript
var config = {}
|
|
|
|
config.mqtt = {}
|
|
config.sqlite = {}
|
|
|
|
config.mqtt.options = {
|
|
clientId: 'mqttclientid',
|
|
username: 'mqttusername',
|
|
password: 'mqttpassword',
|
|
keepalive: 60,
|
|
reconnectPeriod: 1000,
|
|
protocolVersion: 3,
|
|
protocolId: 'MQIsdp',
|
|
clean: true,
|
|
encoding: 'utf8'
|
|
};
|
|
config.mqtt.url = 'mqtt://MQTTURL'
|
|
|
|
config.auth = "random auth token"
|
|
|
|
module.exports = config |