DP-2558 Save device_id after activate. Unless user set device id it wont change
DP-2775: adding agent command to set UDP listener port

Signed-off-by: Andrzej Dajnowski <andrzej.dajnowski@intel.com>
DP-3144 Move token.json to data/ folder
DP-3182 Add command to move data directory with user config
DP-2961: ignore UDP/TCP messages from remote senders

DP-2961: Adding debug message

DP-2961: correcting sender's address
DP-3265 Adding to agent option which allow to set device name and reset it to default

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
DP-3309 Sending empty strings instead of undefined in credentials for MQTT.
DP-3310 : Adding credentials forwarding to mqtt and rest clients (deviceId and device Token)

Signed-off-by: Joanna Rozestwinska <joanna.rozestwinska@intel.com>
DP-3181 : Added initializing token.json and sensor-list.json files for iotkit-agent.js

DP-3181 : Moved new function to other file

DP-3181 : Removed token.json and sensor-list.json files from git repo

DP-3181 : Changed function for checking file existing
DP-3122 - Change config loading strategy

DP-3122 Fix configuration files

DP-3122 Add writing to user configuration instead global

DP-3122 Fix configuration files to default

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
DP-3115 Add -C / --config flag to agent and admin

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
DP-3282 Logging MQTT connected and close connection events.

DP-3282 Saving bindings and restoring subscription to topics after MQTT reconnection. Detaching old event handlers for that topic before applying new handler.

Signed-off-by: Marek Tomczewski <marek.tomczewski@intel.com>
DP-3122 User config is empty by default. Only example is provided in comment.
DP-3379 keep data directory location in file not tracked

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
Fix move-data-directory

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
Fix move-data-directory to remove unused files

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
Fix getConfig to read user.js in

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
Fixed problem with not working observations via mqtt.
Setting device credentials.

Signed-off-by: Marek Tomczewski <marek.tomczewski@intel.com>
Add data_directory to global.json and fix directory commands

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>
Add default directory to etc/iotkit-agent and fix statements

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>