- This topic has 1 reply, 2 voices, and was last updated 6 months, 1 week ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EByte LoRa e32 UART devices sx1262/sx1268 › E32-433T30D Receiving Struct Problem
Tagged: E32-433T30D
Hi, I’m trying to communicate two e32-433t30d devices. Firstly, I started to communicate easy data. Like counter, I declared a counter and sent it to the other devices. And increase my counter. This example worked fine. I have no problem with my communication. However, the communication became confusing when I tried to send the structure. I can create a struct in the transmitter and fill it with sensor data (BMP280 and MPU9250). After that, I send it, and I can get a success message. But when I started to run my receiver code. I can get a data packet, but the data are wrong. They are some random numbers.
I used the FTDI USB-TTL Convertor to supply my RF modules with 5V. And I’m using blackpill V2.0 for my transmitter and bluepill for my receiver.
I added my main file and rf file. I don’t organize my code. I’m sorry about that. If you can help me resolve my problem, it will be wonderful.
Hi Baftu,
I think you set the pointer for the structure, not the structure of single elements.
You must create a fixed structure with fixed-size elements.
Bye Renzo
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Temperature Tutorial Web Server Wemos D1 mini WiFi