ESP-IDF: Send data from Node to ROOT fail
Posted: Wed Oct 25, 2023 4:24 am
Hello everyone,
I am using esp-idf v3.3.5 and I want to send data from Node ( Sensor Node) to Root Node in order to Node Root publish data on MQTT broker but I received one problem send Root Fail 0x4008 ( ESP_ERR_MESH_ARGUMENT)
This is my code
err = esp_mesh_send(NULL, &data, 0, NULL, 0);
mesh_data_t data;
data.data = tx_buf;
data.size = sizeof(tx_buf);
data.proto = MESH_PROTO_JSON;
memcpy(tx_buf,(uint8_t*)json_data1,json_data_size+1);
Please help me. Thank you
I am using esp-idf v3.3.5 and I want to send data from Node ( Sensor Node) to Root Node in order to Node Root publish data on MQTT broker but I received one problem send Root Fail 0x4008 ( ESP_ERR_MESH_ARGUMENT)
This is my code
err = esp_mesh_send(NULL, &data, 0, NULL, 0);
mesh_data_t data;
data.data = tx_buf;
data.size = sizeof(tx_buf);
data.proto = MESH_PROTO_JSON;
memcpy(tx_buf,(uint8_t*)json_data1,json_data_size+1);
Please help me. Thank you