0
\$\begingroup\$

assume that we have 4 e32 433T30d nodes we are measuring temp and sending to a center point. as a image atteached. I am using arduino.

enter image description here

I am using this library with arduino https://github.com/xreef/LoRa_E32_Series_Library

and center point is reading incoming mesages with this code (arduino code)

void loop()
    {
    if (e32ttl.available() > 1){
     
    ResponseStructContainer rsc = e32ttl.receiveMessage(sizeof(Message));
    struct Message message = *(Message*) rsc.data;
    Serial.println(message.type);
     
    Serial.println(*(float*)(message.temperature));
    Serial.println(message.message);
    // free(rsc.data);
    rsc.close();
    }
    }

How can I read the data of all nodes at the simultaneously without the nodes getting mixed up? it looks like reverse broadcast mode. how can achive that without losing data and constantly reading the same point?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ you can only read data sequentially ... the data could be obtained simultaneously \$\endgroup\$
    – jsotola
    May 11 at 21:56
  • \$\begingroup\$ How can prevent to read same node everytime. For example center point can read with an order such as first node1, than node2.... \$\endgroup\$
    – mehmet
    May 11 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.