Struct_send/receive problems

Started by daemach, March 05, 2020, 12:08:28 PM

daemach

I'm testing the RFM69 library and having some problems.  It looks like packets are making it from one device to another, but they seem to be corrupted.  The sending device is an Adafruit ESP32 feather with radio shield and the receiving device is (currently) an Arduino Uno with a RFM69W (not HCW) breakout.  I have #define IS_RFM69HW_HCW commented out on the 69W side.  What am I doing wrong?

See below:


daemach

I tried using node and gateway and it looks like packets are making it through, but ACKs aren't working...


TomWS

Quote from: daemach on March 05, 2020, 03:53:37 PM
...it looks like packets are making it through, but ACKs aren't working...
and I'm sure we've never ever seen this happen before...

syrinxtech

I have several ESP32-Moteino projects and anytime I send structs back/forth, I have to pack the structs on the ESP32 side.  For example, on the ESP32, I code the following:

struct __attribute__((__packed__)) THStruct {
  float temp;
  float humidity;
};

Code the same struct as normal on the Moteino side.