-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two different MCUs #50
Comments
Are you sending everything in a strict? If so it’s possible due to the fact that different MCU will compile struct differently and pack them differently. ESP32 32-bit device and the other is an eight. This probably will not work but try using a neutral data type try uin16_t. If that doesn’t work you’ll have to use a library called easy transfer. Let me know if you need an example on how to use that library
Thanks.
Kris Kasprzak
… On Mar 19, 2022, at 8:58 AM, Yousefff1 ***@***.***> wrote:
Hi!
I'm having issues transmitting data using two E220 modules but with different MCUs, in this case ESP8266 (receiver) and Atmega328P-AU (Transmitter). It seems floats transmit just fine, but Integers show up either as random (large) numbers or zero.
I'm using the barebone receive and transmit sketches examples from the library.
Any ideas?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
|
Thank you! That did it. It seems the ESP8266 liked the uint16_t, even though it was sent as int from the Atmega328P-AU. |
Yep, glad it was that easy. int's on 32 bit mcu are 4 bytes not 2 like UNOs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I'm having issues transmitting data using two E220 modules but with different MCUs, in this case ESP8266 (receiver) and Atmega328P-AU (Transmitter). It seems floats transmit just fine, but Integers show up either as random (large) numbers or zero.
I'm using the barebone receive and transmit sketches examples from the library.
Any ideas?
The text was updated successfully, but these errors were encountered: