mqtt-devices-parser 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.16
4
+ changes db tables:
5
+ - models/devices.models: removes endpoint, adds protocol and psk.
6
+ - adds mqtt_password
7
+
3
8
  ## 1.0.15
4
9
  src/device/device: fixes fota for sniffer model
5
10
  changes DB tables:
@@ -20,6 +20,10 @@ module.exports = (sequelize,DataTypes)=>{
20
20
  type: DataTypes.STRING,
21
21
  allowNull: true
22
22
  },
23
+ mqtt_password: {
24
+ type: DataTypes.STRING(24),
25
+ allowNull: true
26
+ },
23
27
  gmail: {
24
28
  type: DataTypes.STRING(64),
25
29
  //unique: true,
@@ -59,11 +59,14 @@ module.exports = (sequelize,DataTypes)=>{
59
59
  type: DataTypes.INTEGER,
60
60
  allowNull: true
61
61
  },
62
- endpoint: { // info about protocol communication
63
- type: DataTypes.JSON,
62
+ protocol: { // protocol communication to be used
63
+ type: DataTypes.STRING,
64
+ allowNull: false
65
+ },
66
+ psk: { // pre shared key
67
+ type: DataTypes.STRING,
64
68
  allowNull: true
65
69
  },
66
-
67
70
  },
68
71
  {
69
72
  tableName: 'devices',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mqtt-devices-parser",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {