Can you make your project available for download so we can try it !?
I also had an issue with the wifi in the past. Solution was to wait long enough, I think about 5mins, for the AP to become active again.
Or press the reset button >10secs for a complete reset
I have not seen this issue anymore in more recent firmwares, maybe I didn't create that situation again. Anyway, I would suggest to upgrade the firmware to the latest
I am driving an external relay board, where I need to pull the driving line to gnd to put the relay in the on state
The input stage of the relays is an optocoupler with the anode tied to VCC through a 1K resistor, and the cathode side goes through a led to the driving input coming from the Omega.
To be stable during boot and initialisation I need a pullup resistor on that driving input, but:
Removing the sigaddset(&irqSigset, SIGINT); did NOT solve the problem of CTRL+C not working.
I compile the fast-gpio sources in my own C++ app, so it is all in my executable, no libraries linked, no external apps called or processes spawned.
I was just using set pin direction and get/set pin value, so it was quite a large difference in memory usage between fast and new GPIO.
But as you state, your code is more extensive and provides more functionality.
For my application the extra memory is no problem as it will be the sole app running on the Onion. My eye fell on it while debugging a memory leak.
Anyway, it would be great to have the CTRL+C issue fixed.
Thx for the effort
@Kit-Bishop Thx for looking into it.
I also noticed that my app uses 4% system memory with the fast GPIO libs... and 10% with your new GPIO lib. Guess that has to do with the usage of threads in your lib.
Seems like my framework was doing just fine... but I was using the new GPIO library from Kit Bishop !?
Once I backed out this library and used the fast GPIO instead, CTRL+C worked as expected.
Possibly the new GPIO library also sets a hook for CTRL+C
Looks like your connection to Onion Community was lost, please wait while we try to reconnect.