#ifndef MAIN_H #define MAIN_H #include /******************************************************* * Constants *******************************************************/ #define CONFIG_MESH_ROUTE_TABLE_SIZE 100 #define CONFIG_MESH_MAX_LAYER 6 #define CONFIG_MESH_CHANNEL 0 // change these static const uint8_t MESH_ID[6] = { 0x77, 0x77, 0x77, 0x77, 0x77, 0x77 }; #define CONFIG_MESH_ROUTER_SSID "FBK_the_cutest_fox" #define CONFIG_MESH_ROUTER_PASSWD "zsfv3210" #define CONFIG_MESH_AP_AUTHMODE WIFI_AUTH_WPA2_PSK #define CONFIG_MESH_AP_PASSWD "RASRASRAS" #define CONFIG_MESH_AP_CONNECTIONS 6 // number of nodes #define CONFIG_MESH_NON_MESH_AP_CONNECTIONS 0 // number of non-node devices #define APP_MQTT_URI "mqtt://10.0.0.1:1883" #define APP_MQTT_TOPIC "adboard" /******************************************************* * Function Declarations *******************************************************/ #ifdef __cplusplus extern "C" { #endif void mqtt_event_data_callback_func(char* topic, int topic_len, char* data, int data_len); #ifdef __cplusplus } #endif #endif