help
Not very well tested yet
+config UART_ENABLED
+ bool "Actually fetch and report the AQI over UART"
+ default y
+ help
+ Gets passed and used later for includes
config ZIG_ENABLED
bool "Are we using zigbee pairing and reporting"
default n
create_config_network(esp_openthread_get_instance());
- // Run the main loop
- esp_openthread_launch_mainloop();
+ while (true) {
+ // Run the main loop
+ esp_err_t err = esp_openthread_launch_mainloop();
+ ESP_LOGE(TAG, "Error somewhere in openthread loop %s.", esp_err_to_name(err));
+ vTaskDelay( pdMS_TO_TICKS(10000) );
+
+ }
+
// Clean up
esp_netif_destroy(openthread_netif);
#include "openthread/thread.h"
-# define CONFIG_OPENTHREAD_NETWORK_POLLPERIOD_TIME 3000
+#define CONFIG_OPENTHREAD_NETWORK_POLLPERIOD_TIME 3000
+// okay this isn't really defined here, you need to find it in the openthread source :(
+#define OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MAXIMUM_INTERVAL 60000 // 60 seconds = 1 minute
#define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \
{ \