-
Notifications
You must be signed in to change notification settings - Fork 164
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
Platform.h #177
Comments
Hi @pamukcu09, the best start is |
Thank you for your reply @matth-x -I started with the definition MOCPP_PLATFORM=MOCPP_PLATFORM_UNIX and also defined MOCPP_CUSTOM_TIMER. -Then I started getting the error that the dirent.h file is not supported. https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/blob/master/RT-Thread-1.2.2/components/libc/newlib/sys/dirent.h -This way I got an error-free build in the STM32CUBEIDE environment. I have already integrated mongoose library and arduinoJson libraries before. I will try to connect to the OCPP server by integrating an ethernet connection as well. |
Thanks for sharing your results and congrats on the successful build! Would be curious about what's finally necessary for the full port. Can you imagine to add an MOCPP_PLATFORM_STM32 section to the Platform.h and create a PR? Before running into trouble with the filesystem, you could deactivate it for the moment by adding At runtime, the OCPP lib will also need the clock. It reads the clock using a callback function which is set using this function: MicroOcpp/src/MicroOcpp/Platform.h Line 68 in 99a0925
|
After making sure that I did everything right, it would be great to add the MOCPP_PLATFORM_STM32 section. |
Hi @matth-x ,
I am trying to compile this project in STM32CubeIDE environment. However, I get a compilation error because it does not contain the arduino.h in the platform.h file. What should I define MOCPP_PLATFORM as?
The text was updated successfully, but these errors were encountered: