Skip to content

Config file

System configuration file is located on internal filesystem, under /default.cfg. This file defines crucial device settings in order to work properly. Before usage, parameters must be updated with the parameters generated by IoTaaP Console, and that can be done using IoTaaP Web Configurator.

Configuration file

Configuration file is JSON formatted and user should NOT change its original structure

{
  "device_id": "",
  "device_token": "",
  "group_id": "",
  "group_token": "",
  "ssid": "",
  "ssid_pass": "",
  "rof": true,
  "auto_update": false,
  "mqtt_server": "mqtt1.iotaap.io",
  "mqtt_port": 8883,
  "mqtt_user": "",
  "mqtt_pass": "",
  "timezone": 4,
  "ntp_1": "pool.ntp.org",
  "ntp_2": "time.nist.gov"
}

Configuration parameters

  • device_id (string) - ID generated by IoTaaP Console
  • device_token (string) - Token generated by IoTaaP Console
  • group_id (string) - Group ID generated by IoTaaP Console (if applicable)
  • group_token (string) - Group Token generated by IoTaaP Console (if applicable)
  • ssid (string) - Access Point name (e.g. WiFi SSID)
  • ssid_pass (string) - Access Point password
  • rof (bool) - "Restart on failure" - if true, module will restart if not connected to SSID after few attempts
  • auto_update (bool) - If true, module will automatically check for updates and perform update if available. If false system could be updated only manually
  • mqtt_server (string) - MQTTS broker (server) domain. Example for IoTaaP: mqtt1.iotaap.io
  • mqtt_port (unsigned integer) - MQTTS broker port. Default for IoTaaP: 8883
  • mqtt_user (string) - MQTT instance username, generated by IoTaaP Console
  • mqtt_pass (string) - MQTT instance password, generated by IoTaaP Console
  • timezone (signed integer) - Time offset from GMT (e.g. 4 for GMT+4 or -2 for GMT-2)
  • ntp_1 (string) - First NTP server to be used. Default: pool.ntp.org
  • ntp_2 (string) - Second NTP server to be used. Default: time.nist.gov