![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Initial release
Revision 1:0a30ef7e2613, committed 2020-02-13
- Comitter:
- vikshin
- Date:
- Thu Feb 13 00:24:36 2020 +0000
- Parent:
- 0:3e84b0310c96
- Commit message:
- Minor updates
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3e84b0310c96 -r 0a30ef7e2613 main.cpp --- a/main.cpp Thu Feb 13 00:03:24 2020 +0000 +++ b/main.cpp Thu Feb 13 00:24:36 2020 +0000 @@ -58,9 +58,6 @@ #define WIFI_MODE STATION -/* MQTT */ -#define MQTT_PORT 8883 - // ---------------------------------------------------------------------------------------------------- // Variables // ---------------------------------------------------------------------------------------------------- @@ -118,7 +115,7 @@ int8_t deviceSetDhcp_WizFi360(int mode, int en_dhcp); int8_t deviceConnAP_WizFi360(int mode, char *ssid, char *password); -/* MQTT */ +/* Azure */ int8_t deviceSetAzureConf_WizFi360(char *iot_hub, char *device_id, char *sas_token); int8_t devicePublishMsg_WizFi360(char *device_id, sensor *sensor_info); int8_t deviceAzureCon_WizFi360(); @@ -145,16 +142,12 @@ deviceSetDhcp_WizFi360(WIFI_MODE, ENABLE); deviceConnAP_WizFi360(WIFI_MODE, ssid, password); - /* Set MQTT */ + /* Set Azure */ deviceSetAzureConf_WizFi360(hub_name,device_id,device_primary_key); deviceSetTopic_WizFi360(device_id); deviceAzureCon_WizFi360(); - //deviceSetMqttConnConf_WizFi360(host_name, device_id, sas_token, alive_time); - //deviceSetTopic_WizFi360(device_id); - //deviceConnBroker_WizFi360(ENABLE, host_name, MQTT_PORT); - while(true) { /* Get sensor info */ @@ -389,7 +382,7 @@ } // ---------------------------------------------------------------------------------------------------- -// Functions : MQTT +// Functions : Azure // ---------------------------------------------------------------------------------------------------- int8_t deviceSetAzureConf_WizFi360(char *iot_hub, char *device_id, char *sas_token)