ESP-MDF Broadcast from one node

fjalonzo
Posts: 4
Joined: Mon Oct 29, 2018 2:06 pm

ESP-MDF Broadcast from one node

Postby fjalonzo » Fri Dec 21, 2018 6:44 am

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_LBB
Posts: 108
Joined: Fri May 18, 2018 3:41 am

Re: ESP-MDF Broadcast from one node

Postby ESP_LBB » Mon Dec 24, 2018 3:36 am

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.

fjalonzo
Posts: 4
Joined: Mon Oct 29, 2018 2:06 pm

Re: ESP-MDF Broadcast from one node

Postby fjalonzo » Thu Dec 27, 2018 1:04 pm

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?

ESP_LBB
Posts: 108
Joined: Fri May 18, 2018 3:41 am

Re: ESP-MDF Broadcast from one node

Postby ESP_LBB » Fri Dec 28, 2018 3:37 am

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

fjalonzo
Posts: 4
Joined: Mon Oct 29, 2018 2:06 pm

Re: ESP-MDF Broadcast from one node

Postby fjalonzo » Fri Dec 28, 2018 5:15 am

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).

Who is online

Users browsing this forum: No registered users and 27 guests