- This topic has 1 reply, 2 voices, and was last updated 1 year, 7 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- 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
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
