Skip to content
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

Closed
Yousefff1 opened this issue Mar 19, 2022 · 3 comments
Closed

Two different MCUs #50

Yousefff1 opened this issue Mar 19, 2022 · 3 comments

Comments

@Yousefff1
Copy link

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?

@KrisKasprzak
Copy link
Owner

KrisKasprzak commented Mar 19, 2022 via email

@Yousefff1
Copy link
Author

Thank you! That did it. It seems the ESP8266 liked the uint16_t, even though it was sent as int from the Atmega328P-AU.

@KrisKasprzak
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants