Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Minor fix for the ESP8266 compiler #31

Closed
rpseng opened this issue May 31, 2015 · 2 comments
Closed

Minor fix for the ESP8266 compiler #31

rpseng opened this issue May 31, 2015 · 2 comments

Comments

@rpseng
Copy link

rpseng commented May 31, 2015

Hi, this is a really mice library!

After some work I got it working within the ESP8266 wifi module together with a max3232 chip. This is less than USD 5 to get a RTU Modbus hardware by wifi!

The only problem is that the esp compiler gets confused with your ModbusMaster::send function. The fix is very simple, just adjust the cast:
void ModbusMaster::send(uint8_t data)
{
send((word)data);
}

We also discussed this issue here:
esp8266/Arduino#360

All the best.

@aneek231
Copy link

If this library works with ESP8266? I get this during compilation: This library only supports boards with an AVR or SAM processor. Please open an issue at https://github.com/4-20ma/ModbusMaster/issues and indicate which processor/platform you're using."

@4-20ma
Copy link
Owner

4-20ma commented Sep 10, 2016

As of #29, you should be able to compile against the ESP8266.

@4-20ma 4-20ma closed this as completed Sep 10, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants