Closed elhamsut closed 2 years ago
This library is pure C code not C++.
How can I fix this issue?
On Sat, Jan 8, 2022, 7:09 PM Alejandro Mera @.***> wrote:
This library is pure C code not C++.
— Reply to this email directly, view it on GitHub https://github.com/alejoseb/Modbus-STM32-HAL-FreeRTOS/issues/46#issuecomment-1008029697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILLEA3PMP52FKNBS4FRY3LUVBLB7ANCNFSM5LQOQOEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
There are plenty of options, you can look online how to use c from c++. Ultimately, you can write a class using the modbus structure and methods provided in this library. That will require considerable refactoring, which is beyond the scope of this library.
Can not instantiate an object from modbusHandler_t ?