Problem with greengrass discovery on esp32 wrover kit v3

salkaleidoscope wrote on October 14, 2019:

Thank you very much for the insight! I had some large statically allocated global variables that I had brought in from other code. Once I made them a lot smaller my code to initialize peripherals and ring buffer worked.

Although in the code you posted, I believe that the vPortFree() needs to be after the call to prvSendMessageToGGC() because I think xHostAddressData is using memory that gets freed otherwise.I was getting errors like this:


13 1448 [iot_thread] [ERROR][NET][14480] Failed to resolve ��EXX٦�?Į�?.
14 1448 [iot_thread] [ERROR][MQTT][14480] Failed to establish new MQTT connection, error NETWORK ERROR. 15 1448 [iot_thread] ERROR: Could not connect to the Broker.
16 1448 [iot_thread] failed to connect to MQTT Agent
17 1448 [iot_thread] Heap low watermark: 9140. Stack high watermark: 5084.