How to broadcast in esp-mdf?
For example, in a circuit of 16 nodes then with a sensor/detector attached in each node. I want to send the data from the sensor/detector of node 1 to other 15 nodes if the value is changed.
ESP-MDF Broadcast from one node
Re: ESP-MDF Broadcast from one node
Hi fjalonzo,
In one way, you can set the destination address to ff:ff:ff:ff:ff:ff, so this message will be sent to every node in the network via unicast/multicast.
In another way, you can use the broadcast API, MWIFI_COMMUNICATE_BROADCAST, which we are still testing.
Personally I suggest the 1st way.
In one way, you can set the destination address to ff:ff:ff:ff:ff:ff, so this message will be sent to every node in the network via unicast/multicast.
In another way, you can use the broadcast API, MWIFI_COMMUNICATE_BROADCAST, which we are still testing.
Personally I suggest the 1st way.
Re: ESP-MDF Broadcast from one node
Thanks ESP_LBB.
Right now I would like to determine the RSSI from 1 node to another. Is that possible in the ESP-MDF? If so, what are the steps to be done?
Right now I would like to determine the RSSI from 1 node to another. Is that possible in the ESP-MDF? If so, what are the steps to be done?
Re: ESP-MDF Broadcast from one node
Hi fjalonzo,
In the example "get-started" on GitHub, in the source code you may find "mesh_assoc.rssi" on line 145. This can print the RSSI between the node and its parent node, if this is what you aer looking for.
https://github.com/espressif/esp-mdf/bl ... ted.c#L145
In the example "get-started" on GitHub, in the source code you may find "mesh_assoc.rssi" on line 145. This can print the RSSI between the node and its parent node, if this is what you aer looking for.
https://github.com/espressif/esp-mdf/bl ... ted.c#L145
Re: ESP-MDF Broadcast from one node
Hi ESP_LBB,
Yeah, that is for the parent RSSI. However, I would like to get the RSSI from the nonparent nodes or specific nodes (not the parent node).
Yeah, that is for the parent RSSI. However, I would like to get the RSSI from the nonparent nodes or specific nodes (not the parent node).
Who is online
Users browsing this forum: No registered users and 33 guests