bertmelis / esp32ModbusTCP

Modbus client for ESP32
MIT License
84 stars 32 forks source link

expected declaration before '}' token #6

Closed zekageri closed 4 years ago

zekageri commented 5 years ago

In first compile with the librari : expected declaration before '}' token in the esp32ModbusTypeDefs.h line 66.

bertmelis commented 5 years ago

I can't see where this error comes from... How does your file compare to the file in this repo? Are there any more error messages?

Remark: I had some problems with this lib and am rewriting completely from scratch.

zekageri commented 5 years ago

Iam using the Example code from github. I dont write anything else yet. Just included the lib header and copy paste the rest just to see if it is compile or not. But it is not. :( I wanted to communicate with a PLC via modbus with this lib.

Bert Melis notifications@github.com ezt írta (időpont: 2019. aug. 14., Sze 9:20):

I can't see where this error comes from... How does your file compare to the file in this repo? Are there any more error messages?

Remark: I had some problems with this lib and am rewriting completely from scratch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bertmelis/esp32ModbusTCP/issues/6?email_source=notifications&email_token=AJBE42IFUKBNKPNQZMN66ZDQEOW5LA5CNFSM4ILRYHPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4H5TBQ#issuecomment-521132422, or mute the thread https://github.com/notifications/unsubscribe-auth/AJBE42KVJYKKCNUUT7HGVADQEOW5LANCNFSM4ILRYHPA .

zekageri commented 5 years ago

Yes, i have got some more errors but i think all of it are related to this error. Other error messages are two include errors. the stdint.h and the functional. I don't know why these are here. I'am using PlatformIO ide with vscode and latest esp32 core in it with latest async lib.

bertmelis commented 5 years ago

You mean you cannot include stdint and functional? Well, if these things are not included, the file will not compile.

Surprising however because these files belong to the Arduino core and should be available when installign through Platformio.

zekageri commented 5 years ago

They are included just the platformIO can not open them for some reason. I use my own library folder inside my project. Every library is in that folder. And some of them are using these libs too without a problem. :/