Seams like an instance variable is getting overwritten.

dansam8
Posts: 1
Joined: Tue Mar 12, 2019 11:37 am

Seams like an instance variable is getting overwritten.

Postby dansam8 » Tue Mar 12, 2019 12:17 pm

Greetings. I'm new to the forum and quite a beginner in general. I'm busy building an IoT system with the esp32 and have come across a problem that seams way out of my scope. Working on a class for handling mqtt communication with AWS (Basically copying nkolbans's AWS from cpp_utils), it seams that the member variable AWS_IoT_Client is over written between functions.

i've used [aws_iot_client].networkStack.tlsConnectionsParams.pDesinationURL to test the data integrity.

To add confusion, after assigning dummy data to pDesinationURL in the constructor method, this data is still OK in the init method but between running the init method and the connect method some of the URL gets corrupted.

If anyone could point me in the right direction to fixing this that would be greatly appreciated.
  1.  
  2. #include "my_mqtt.h"
  3.  
  4. #include <string>
  5. #include <cstring>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <ctype.h>
  9. #include <unistd.h>
  10. #include <limits.h>
  11. #include <string.h>
  12.  
  13. #include "freertos/FreeRTOS.h"
  14. #include "freertos/task.h"
  15. #include "freertos/event_groups.h"
  16. #include "esp_system.h"
  17. #include "esp_wifi.h"
  18. #include "esp_event_loop.h"
  19. #include "esp_log.h"
  20.  
  21. #include "esp_http_client.h"
  22.  
  23. #include <aws_iot_config.h>
  24. #include <aws_iot_log.h>
  25. #include <aws_iot_version.h>
  26. #include <aws_iot_mqtt_client_interface.h>
  27.  
  28.  
  29. using namespace std;
  30.  
  31. static const char *TAG = "log";
  32.  
  33. My_mqtt::My_mqtt() {
  34.   client.networkStack.tlsConnectParams.pDestinationURL = "dummy_data_at_constructor";
  35.  
  36. }
  37. My_mqtt::~My_mqtt(){}
  38.  
  39. int My_mqtt::init(string host_address, int32_t port, string aws_root_ca, string aws_crt, string aws_key){
  40.   IoT_Client_Init_Params mqttInitParams = iotClientInitParamsDefault;
  41.   ESP_LOGI(TAG, "URL start of init %s",client.networkStack.tlsConnectParams.pDestinationURL);
  42.  
  43.   mqttInitParams.enableAutoReconnect = false; // We enable this later below
  44.   mqttInitParams.pHostURL = (char *) host_address.c_str();
  45.   mqttInitParams.port = port;
  46.  
  47.   mqttInitParams.pRootCALocation = (const char *) aws_root_ca_start;//aws_root_ca.c_str();
  48.   mqttInitParams.pDeviceCertLocation = (const char *) mqtt_crt_start;//aws_crt.c_str();
  49.   mqttInitParams.pDevicePrivateKeyLocation = (const char *) mqtt_key_start;//aws_key.c_str();
  50.  
  51.   mqttInitParams.mqttCommandTimeout_ms = 20000;
  52.   mqttInitParams.tlsHandshakeTimeout_ms = 5000;
  53.   mqttInitParams.isSSLHostnameVerify = true;
  54.   mqttInitParams.disconnectHandlerData = NULL;
  55.  
  56.   IoT_Error_t rc = aws_iot_mqtt_init(&client, &mqttInitParams);
  57.   ESP_LOGI(TAG, "URL end of init %s",client.networkStack.tlsConnectParams.pDestinationURL);
  58.  
  59.   if (rc != SUCCESS){
  60.     ESP_LOGE("tag", "aws iot mqtt init error: %d", rc);
  61.     return -1;
  62.   }
  63.   return 0;
  64. }
  65.  
  66.  
  67. int My_mqtt::connect(string client_id){
  68.   ESP_LOGI(TAG, "URL start of connect %s",client.networkStack.tlsConnectParams.pDestinationURL);
  69.  
  70.  
  71.   IoT_Error_t rc;
  72.   IoT_Client_Connect_Params connectParams = iotClientConnectParamsDefault;
  73.  
  74.   connectParams.keepAliveIntervalInSec = 10;
  75.   connectParams.isCleanSession = true;
  76.   connectParams.MQTTVersion = MQTT_3_1_1;
  77.   connectParams.pClientID = client_id.c_str();
  78.   connectParams.clientIDLen = client_id.length();
  79.   connectParams.isWillMsgPresent = false;
  80.  
  81.   do {
  82.     rc = aws_iot_mqtt_connect(&client, &connectParams);
  83.     if(SUCCESS != rc) {
  84.  
  85.       ESP_LOGE(TAG, "Error(%d) connecting", rc);
  86.       vTaskDelay(1000 / portTICK_RATE_MS);
  87.     }
  88.   } while(SUCCESS != rc);
  89.  
  90.   //copy from example
  91.   //   * Enable Auto Reconnect functionality. Minimum and Maximum time of Exponential backoff are set in aws_iot_config.h
  92.   //   *  #AWS_IOT_MQTT_MIN_RECONNECT_WAIT_INTERVAL
  93.   //   *  #AWS_IOT_MQTT_MAX_RECONNECT_WAIT_INTERVAL
  94.  
  95.   rc = aws_iot_mqtt_autoreconnect_set_status(&client, true);
  96.   if(SUCCESS != rc) {
  97.     ESP_LOGE(TAG, "Unable to set Auto Reconnect to true - %d", rc);
  98.     return -1;
  99.   }
  100.   return 0;
  101. }
  102.  
  1.  
  2.  
  3. #include <string>
  4. #include <freertos/FreeRTOS.h>
  5. #include <freertos/task.h>
  6.  
  7.  
  8. #include <aws_iot_config.h>
  9. #include <aws_iot_log.h>
  10. #include <aws_iot_version.h>
  11. #include <aws_iot_mqtt_client_interface.h>
  12.  
  13. using namespace std;
  14.  
  15. extern const uint8_t s3_cert_start[] asm("_binary_s3_root_ca_pem_start");
  16. extern const uint8_t s3_cert_end[] asm("_binary_s3_root_ca_pem_end");
  17. extern const uint8_t aws_root_ca_start[] asm("_binary_root_ca_pem_crt_start");
  18. extern const uint8_t aws_root_ca_end[] asm("_binary_root_ca_pem_crt_end");
  19. extern const uint8_t mqtt_crt_start[] asm("_binary_75_mqtt_pem_crt_start");
  20. extern const uint8_t mqtt_crt_end[] asm("_binary_75_mqtt_pem_crt_end");
  21. extern const uint8_t mqtt_key_start[] asm("_binary_75_mqtt_pem_key_start");
  22. extern const uint8_t mqtt_key_end[] asm("_binary_75_mqtt_pem_key_end");
  23.  
  24. class My_mqtt {
  25.  
  26. private:
  27.   AWS_IoT_Client client;
  28.  
  29. public:
  30.   My_mqtt();
  31.   virtual ~My_mqtt();
  32.   int init(string host_address, int32_t port, string aws_root_ca, string aws_crt, string aws_key);
  33.   int connect(string client_id); //chech wifi is connected first
  34.   int disconnect();
  35.   int publish(string payload, string topic);
  36.   int subscribe(string topic);
  37.  
  38. };
  1.  
  2. static void initialise_wifi(void)
  3. {
  4.     ESP_LOGI("log", "wifi init started");
  5.     tcpip_adapter_init();
  6.     wifi_event_group = xEventGroupCreate();
  7.     ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
  8.     wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
  9.     ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
  10.     ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
  11.     wifi_config_t wifi_config;
  12.     string ssid = "ssid";
  13.     string password = "password";
  14.     ::memset(&wifi_config, 0, sizeof(wifi_config));
  15.     ::memcpy(&wifi_config.sta.ssid, ssid.data(), ssid.size());
  16.     ::memcpy(&wifi_config.sta.password, password.data(), password.size());
  17.     ESP_LOGI("log", "Setting WiFi configuration SSID %s", wifi_config.sta.ssid);
  18.     ESP_LOGI("log", "Setting WiFi configuration pwd %s", wifi_config.sta.password);
  19.  
  20.     ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
  21.     ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
  22.     ESP_ERROR_CHECK( esp_wifi_start() );
  23. }
  24.  
  25.  
  26. void communication_task(void * ptr){
  27.  
  28.   My_mqtt my_mqtt;
  29.   my_mqtt.init(HostAddress, port, "", "", "");
  30.   ESP_LOGI("log", "starting mqtt connect");
  31.   ESP_LOGI("log", "heep_integrity %d", heap_caps_check_integrity_all(NULL));
  32.   my_mqtt.connect("esp32");
  33.  
  34.   while(1){
  35.     my_mqtt.publish("test", "test");
  36.     ESP_LOGI("test", "pub");
  37.     vTaskDelay(1000 / portTICK_RATE_MS);
  38.   }
  39. }
  40.  
  41. void app_main(){
  42.  
  43.   esp_err_t err = nvs_flash_init();
  44.   if (err == ESP_ERR_NVS_NO_FREE_PAGES) {
  45.       // OTA app partition table has a smaller NVS partition size than the non-OTA
  46.       // partition table. This size mismatch may cause NVS initialization to fail.
  47.       // If this happens, we erase NVS partition and initialize NVS again.
  48.       ESP_ERROR_CHECK(nvs_flash_erase());
  49.       err = nvs_flash_init();
  50.   }
  51.   ESP_ERROR_CHECK( err );
  52.  
  53.   uint8_t mac[8] = {0x88, 0xe2, 0x2a, 0xf4, 0x3c, 0x14};
  54.   esp_base_mac_addr_set(mac);
  55.  
  56.   initialise_wifi();
  57.   xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
  58.                       false, true, portMAX_DELAY);
  59.   ESP_LOGI("tag", "wifi connected");
  60.  
  61.   xTaskCreate(&communication_task, "communication_task", 16384, NULL, 1, NULL);
  62.  
  63. }
  64.  
[Codebox]

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6252
load:0x40078000,len:11164
ho 0 tail 12 room 4
load:0x40080400,len:6672
entry 0x40080764
I (30) boot: ESP-IDF v3.3-beta1-328-gabea9e4c0-dirty 2nd stage bootloader
I (30) boot: compile time 13:23:04
I (40) boot: Enabling RNG early entropy source...
I (40) boot: SPI Speed : 40MHz
I (41) boot: SPI Mode : DIO
I (45) boot: SPI Flash Size : 4MB
I (49) boot: Partition Table:
I (53) boot: ## Label Usage Type ST Offset Length
I (60) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (68) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (75) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (83) boot: 3 factory factory app 00 00 00010000 00100000
I (90) boot: 4 ota_0 OTA app 00 10 00110000 00100000
I (98) boot: 5 ota_1 OTA app 00 11 00210000 00100000
I (105) boot: End of partition table
I (109) boot: Defaulting to factory image
I (114) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2cd30 (183600) map
I (187) esp_image: segment 1: paddr=0x0003cd58 vaddr=0x3ffb0000 size=0x02f54 ( 12116) load
I (192) esp_image: segment 2: paddr=0x0003fcb4 vaddr=0x40080000 size=0x0035c ( 860) load
0x40080000: _WindowOverflow4 at /home/this-guy/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (194) esp_image: segment 3: paddr=0x00040018 vaddr=0x400d0018 size=0x87dc8 (556488) map
0x400d0018: _flash_cache_start at ??:?

I (398) esp_image: segment 4: paddr=0x000c7de8 vaddr=0x4008035c size=0x000a4 ( 164) load
0x4008035c: _UserExceptionVector at ??:?

I (398) esp_image: segment 5: paddr=0x000c7e94 vaddr=0x40080400 size=0x10d00 ( 68864) load
I (443) boot: Loaded app from partition at offset 0x10000
I (443) boot: Disabling RNG early entropy source...
I (444) cpu_start: Pro cpu up.
I (447) cpu_start: Application information:
I (452) cpu_start: Project name: access_control_0.0
I (458) cpu_start: App version: df62230-dirty
I (464) cpu_start: Compile time: 13:23:03
I (469) cpu_start: Compile date: Mar 12 2019
I (474) cpu_start: ESP-IDF: v3.3-beta1-328-gabea9e4c0-dirty
I (481) cpu_start: Starting app cpu, entry point is 0x400811f4
0x400811f4: call_start_cpu1 at /home/this-guy/esp/esp-idf/components/esp32/cpu_start.c:265

I (0) cpu_start: App cpu up.
D (491) memory_layout: Checking 7 reserved memory ranges:
D (496) memory_layout: Reserved memory range 0x3ffae000 - 0x3ffae6e0
D (503) memory_layout: Reserved memory range 0x3ffb0000 - 0x3ffb9290
D (509) memory_layout: Reserved memory range 0x3ffe0000 - 0x3ffe0440
D (516) memory_layout: Reserved memory range 0x3ffe3f20 - 0x3ffe4350
D (522) memory_layout: Reserved memory range 0x40070000 - 0x40078000
D (529) memory_layout: Reserved memory range 0x40078000 - 0x40080000
0x40080000: _WindowOverflow4 at /home/this-guy/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

D (535) memory_layout: Reserved memory range 0x40080000 - 0x40091100
0x40080000: _WindowOverflow4 at /home/this-guy/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

D (541) memory_layout: Building list of available memory regions:
D (548) memory_layout: Available memory region 0x3ffae6e0 - 0x3ffb0000
D (554) memory_layout: Available memory region 0x3ffb9290 - 0x3ffc0000
D (561) memory_layout: Available memory region 0x3ffc0000 - 0x3ffc2000
D (567) memory_layout: Available memory region 0x3ffc2000 - 0x3ffc4000
D (574) memory_layout: Available memory region 0x3ffc4000 - 0x3ffc6000
D (581) memory_layout: Available memory region 0x3ffc6000 - 0x3ffc8000
D (587) memory_layout: Available memory region 0x3ffc8000 - 0x3ffca000
D (594) memory_layout: Available memory region 0x3ffca000 - 0x3ffcc000
D (600) memory_layout: Available memory region 0x3ffcc000 - 0x3ffce000
D (607) memory_layout: Available memory region 0x3ffce000 - 0x3ffd0000
D (614) memory_layout: Available memory region 0x3ffd0000 - 0x3ffd2000
D (620) memory_layout: Available memory region 0x3ffd2000 - 0x3ffd4000
D (627) memory_layout: Available memory region 0x3ffd4000 - 0x3ffd6000
D (633) memory_layout: Available memory region 0x3ffd6000 - 0x3ffd8000
D (640) memory_layout: Available memory region 0x3ffd8000 - 0x3ffda000
D (647) memory_layout: Available memory region 0x3ffda000 - 0x3ffdc000
D (653) memory_layout: Available memory region 0x3ffdc000 - 0x3ffde000
D (660) memory_layout: Available memory region 0x3ffde000 - 0x3ffe0000
D (666) memory_layout: Available memory region 0x3ffe0440 - 0x3ffe3f20
D (673) memory_layout: Available memory region 0x3ffe4350 - 0x3ffe8000
D (679) memory_layout: Available memory region 0x3ffe8000 - 0x3fff0000
D (686) memory_layout: Available memory region 0x3fff0000 - 0x3fff8000
D (693) memory_layout: Available memory region 0x3fff8000 - 0x3fffc000
D (699) memory_layout: Available memory region 0x3fffc000 - 0x40000000
D (706) memory_layout: Available memory region 0x40091100 - 0x40092000
D (712) memory_layout: Available memory region 0x40092000 - 0x40094000
D (719) memory_layout: Available memory region 0x40094000 - 0x40096000
D (726) memory_layout: Available memory region 0x40096000 - 0x40098000
D (732) memory_layout: Available memory region 0x40098000 - 0x4009a000
D (739) memory_layout: Available memory region 0x4009a000 - 0x4009c000
D (745) memory_layout: Available memory region 0x4009c000 - 0x4009e000
D (752) memory_layout: Available memory region 0x4009e000 - 0x400a0000
I (759) heap_init: Initializing. RAM available for dynamic allocation:
D (766) heap_init: New heap initialised at 0x3ffae6e0
I (771) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
D (777) heap_init: New heap initialised at 0x3ffb9290
I (782) heap_init: At 3FFB9290 len 00026D70 (155 KiB): DRAM
I (788) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (795) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
D (801) heap_init: New heap initialised at 0x40091100
I (806) heap_init: At 40091100 len 0000EF00 (59 KiB): IRAM
I (813) cpu_start: Pro cpu start user code
D (825) clk: RTC_SLOW_CLK calibration value: 3167373
D (163) intr_alloc: Connected src 46 to int 2 (cpu 0)
D (164) intr_alloc: Connected src 57 to int 3 (cpu 0)
D (165) intr_alloc: Connected src 24 to int 9 (cpu 0)
I (169) cpu_start: Starting scheduler on PRO CPU.
D (0) intr_alloc: Connected src 25 to int 2 (cpu 1)
I (0) cpu_start: Starting scheduler on APP CPU.
D (184) heap_init: New heap initialised at 0x3ffe0440
D (194) heap_init: New heap initialised at 0x3ffe4350
D (204) intr_alloc: Connected src 16 to int 12 (cpu 0)
D (204) nvs: nvs_flash_init_custom partition=nvs start=9 count=4
I (234) log: wifi init started
D (244) nvs: nvs_open_from_partition misc 1
D (244) nvs: nvs_get_str_or_blob log
I (244) wifi: wifi driver task: 3ffc0fe4, prio:23, stack:3584, core=0
I (244) wifi: wifi firmware version: 939cd60
I (254) wifi: config NVS flash: enabled
I (254) wifi: config nano formating: disabled
D (254) nvs: nvs_open_from_partition nvs.net80211 1
D (264) nvs: nvs_get opmode 1
D (264) nvs: nvs_get_str_or_blob sta.ssid
D (274) nvs: nvs_get_str_or_blob sta.mac
D (274) nvs: nvs_get sta.authmode 1
D (274) nvs: nvs_get_str_or_blob sta.pswd
D (284) nvs: nvs_get_str_or_blob sta.pmk
D (284) nvs: nvs_get sta.chan 1
D (284) nvs: nvs_get auto.conn 1
D (294) nvs: nvs_get bssid.set 1
D (294) nvs: nvs_get_str_or_blob sta.bssid
D (304) nvs: nvs_get sta.lis_intval 2
D (304) nvs: nvs_get sta.phym 1
D (304) nvs: nvs_get sta.phybw 1
D (314) nvs: nvs_get_str_or_blob sta.apsw
D (314) nvs: nvs_get_str_or_blob sta.apinfo
D (324) nvs: nvs_get sta.scan_method 1
D (324) nvs: nvs_get sta.sort_method 1
D (324) nvs: nvs_get sta.minrssi 1
D (324) nvs: nvs_get sta.minauth 1
D (334) nvs: nvs_get_str_or_blob ap.ssid
D (334) nvs: nvs_get_str_or_blob ap.mac
D (344) nvs: nvs_get_str_or_blob ap.passwd
D (344) nvs: nvs_get_str_or_blob ap.pmk
D (344) nvs: nvs_get ap.chan 1
D (354) nvs: nvs_get ap.authmode 1
D (354) nvs: nvs_get ap.hidden 1
D (354) nvs: nvs_get ap.max.conn 1
D (364) nvs: nvs_get bcn.interval 2
D (364) nvs: nvs_get ap.phym 1
D (364) nvs: nvs_get ap.phybw 1
D (374) nvs: nvs_get ap.sndchan 1
D (374) nvs: nvs_get lorate 1
D (374) nvs: nvs_set_blob sta.mac 6
D (394) nvs: nvs_set_blob ap.mac 6
I (394) wifi: Init dynamic tx buffer num: 32
I (394) wifi: Init data frame dynamic rx buffer num: 32
I (394) wifi: Init management frame dynamic rx buffer num: 32
I (404) wifi: Init static rx buffer size: 1600
I (404) wifi: Init static rx buffer num: 10
I (414) wifi: Init dynamic rx buffer num: 32
I (414) log: Setting WiFi configuration SSID Miteri
I (414) log: Setting WiFi configuration pwd 123Mitpass1!
D (424) RTC_MODULE: Wi-Fi takes adc2 lock.
D (434) phy_init: loading PHY init data from application binary
D (434) nvs: nvs_open_from_partition phy 0
D (444) nvs: nvs_get cal_version 4
D (444) nvs: nvs_get_str_or_blob cal_mac
D (444) nvs: nvs_get_str_or_blob cal_data
D (454) nvs: nvs_close 3
I (564) phy: phy_version: 4100, 6fa5e27, Jan 25 2019, 17:02:06, 0, 0
I (564) wifi: mode : sta (88:e2:2a:f4:3c:14)
D (564) event: SYSTEM_EVENT_STA_START
I (1894) wifi: new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (2874) wifi: state: init -> auth (b0)
I (2914) wifi: state: auth -> assoc (0)
I (2974) wifi: state: assoc -> run (10)
I (3044) wifi: connected with Miteri, channel 11, bssid = fc:ec:da:3e:a0:2b
I (3044) wifi: pm start, type: 1

D (3044) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Miteri, ssid_len:6, bssid:fc:ec:da:3e:a0:2b, channel:11, authmode:3
D (3054) tcpip_adapter: dhcp client init ip/mask/gw to all-0
D (3054) tcpip_adapter: if0 start ip lost tmr: enter
D (3064) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc5e0c interval=120 ip=0
D (3074) tcpip_adapter: dhcp client start successfully
D (3264) phy_init: wifi mac time delta: 10891
D (3414) phy_init: wifi mac time delta: 73395
D (3514) phy_init: wifi mac time delta: 95162
D (3624) phy_init: wifi mac time delta: 21394
D (3724) phy_init: wifi mac time delta: 11353
D (3924) phy_init: wifi mac time delta: 65921
D (4034) phy_init: wifi mac time delta: 95795
D (4134) phy_init: wifi mac time delta: 95530
D (4234) phy_init: wifi mac time delta: 95954
D (4254) phy_init: wifi mac time delta: 10011
D (4434) phy_init: wifi mac time delta: 65939
D (4544) phy_init: wifi mac time delta: 96795
D (4644) phy_init: wifi mac time delta: 96508
D (4744) phy_init: wifi mac time delta: 95202
D (4764) phy_init: wifi mac time delta: 8506
D (4764) tcpip_adapter: if0 dhcpc cb
D (4764) tcpip_adapter: if0 ip changed=1
D (4764) event: SYSTEM_EVENT_STA_GOT_IP, ip:192.168.1.225, mask:255.255.255.0, gw:192.168.1.1
I (4774) event: sta ip: 192.168.1.225, mask: 255.255.255.0, gw: 192.168.1.1
I (4774) tag: wifi connected
I (4784) log: URL start of init test_data_at_constructor
I (4784) log: URL end of init a3j9gvaf7bw4bd-ats.iot.us-east-1.amazonaws.com
I (4794) log: starting mqtt connect
I (4794) log: heep_integrity 1
I (4804) log: URL start of connect �`�?gvaf7bw4bd-ats.iot.us-east-1.amazonaws.com
D (4814) aws_iot: Seeding the random number generator...
D (4814) aws_iot: Loading embedded CA root certificate ...
D (4824) aws_iot: ok (0 skipped)
D (4824) aws_iot: Loading embedded client certificate...
D (4834) aws_iot: Loading embedded client private key...
D (4844) phy_init: wifi mac time delta: 12022
D (4944) aws_iot: ok
D (4944) aws_iot: Connecting to /8883...
D (4944) phy_init: wifi mac time delta: 85798
D (5154) phy_init: wifi mac time delta: 86364
D (5254) phy_init: wifi mac time delta: 3617
E (5254) aws_iot: failed! mbedtls_net_connect returned -0x52
E (5254) log: Error(-23) connecting
D (5464) phy_init: wifi mac time delta: 13082
D (5564) phy_init: wifi mac time delta: 96798
D (5664) phy_init: wifi mac time delta: 86104
D (5774) phy_init: wifi mac time delta: 95409
D (5874) phy_init: wifi mac time delta: 96849
D (5974) phy_init: wifi mac time delta: 95287
D (6074) phy_init: wifi mac time delta: 91475
D (6174) phy_init: wifi mac time delta: 96873
D (6254) phy_init: wifi mac time delta: 64693
D (6254) aws_iot: Seeding the random number generator...
D (6254) aws_iot: Loading embedded CA root certificate ...
D (6254) aws_iot: ok (0 skipped)
D (6254) aws_iot: Loading embedded client certificate...
D (6264) aws_iot: Loading embedded client private key...
D (6374) aws_iot: ok
D (6374) aws_iot: Connecting to ���?�/8883...
D (6484) phy_init: wifi mac time delta: 30078
D (6584) phy_init: wifi mac time delta: 92866
D (6694) phy_init: wifi mac time delta: 96861
D (6794) phy_init: wifi mac time delta: 85557
D (6894) phy_init: wifi mac time delta: 95897
D (6994) phy_init: wifi mac time delta: 96795
D (7104) phy_init: wifi mac time delta: 85503
D (7204) phy_init: wifi mac time delta: 96422
D (7254) phy_init: wifi mac time delta: 39496
D (7514) phy_init: wifi mac time delta: 55682
D (7614) phy_init: wifi mac time delta: 86603
D (7714) phy_init: wifi mac time delta: 95202
D (7814) phy_init: wifi mac time delta: 95257
D (7914) phy_init: wifi mac time delta: 96837
D (8024) phy_init: wifi mac time delta: 95895
D (8124) phy_init: wifi mac time delta: 96696
D (8224) phy_init: wifi mac time delta: 90742
E (8294) aws_iot: failed! mbedtls_net_connect returned -0x52
E (8304) log: Error(-23) connecting
D (8434) phy_init: wifi mac time delta: 44716
D (8634) phy_init: wifi mac time delta: 29863
D (8734) phy_init: wifi mac time delta: 95662
D (8844) phy_init: wifi mac time delta: 96785
D (8944) phy_init: wifi mac time delta: 96840
D (9044) phy_init: wifi mac time delta: 95914
D (9144) phy_init: wifi mac time delta: 91163
D (9244) phy_init: wifi mac time delta: 84484
D (9304) aws_iot: Seeding the random number generator...
D (9304) aws_iot: Loading embedded CA root certificate ...
D (9304) aws_iot: ok (0 skipped)
D (9304) aws_iot: Loading embedded client certificate...
D (9314) aws_iot: Loading embedded client private key...
D (9354) phy_init: wifi mac time delta: 95353
D (9424) aws_iot: ok
D (9424) aws_iot: Connecting to ���?�/8883...
D (9424) phy_init: wifi mac time delta: 66767


[/Codebox]

Who is online

Users browsing this forum: No registered users and 161 guests