i have to develop an embedded system that
- get informations using an Https web server
- get informations using BLE
- Connect to a server with MQTTs, and exchange data
- Exchange data using a serial port
- Read / write some digital I/O
- can perform OTA
In my opinion plain C is a pain-in-the-ass because it lacks of high levels features (you will say, it's C) in order of pain: dynamic strings (passed out from a function without a pointer juggling), error handling (& resulting error return from a function, instead of the functional value), OOP (& resulting over parametrization of the function to keep it reentrant, with a crazy and illogical mixture of in - out - working parameters in the function call), disproportionate use of structs (instead of using parameters list in the initialiation, so a library update needs a partial code rewrite).
I can overcome some of them with C++, even if the base code structure must remain the same (because of the provided libraries), and I whould like to try micropy to reduce development time (I will probably have many low number projects, so buying 8MB version or WROVER is not a problem).
My questions are:
- Can micropy be used to script an entire embedded system?
- From the documentation it seems that it's hardly oriented to the shell scripting, and that event/problem handling is demanded to the serial output, isn't it? Please provide a documentation regarding it
- is there another way to program using an high level library (also not free, or that require more resources) to reduce development time?
Start AP with
Code: Select all
wifi_startAP(std::string ssid, std::string password, uint32_t base ip = 3232235777, bool withDHCP = true);
Thanks