is_started() kicks them out, some error checking on the new's, nice..
i also move the mutex inits to the constructor among other things..
~q
Where I can have the C++ defning codes for Bridge.begin()? I have opened the Arduino_RouterBridge.h file but could not detect any cpp file. There are H files which do not contain codes. The aim is to see if the method is blocking? If blocking, what does it expect to receive from MPU?
I did if (!client) and if(!server) and checked to make sure upd_stack_area was not NULL..
still froze.. ~q
don't ask me why there are no .c files, everything is in the .h files..
~q
I missed that one, thanks for pointing it out.
I solved it with hardware. I'm throwing GPIO_13 HIGH on the Linux side with a script. I'm connecting this to an MCU input pin with a transistor (1.8 logic -> 3.3 logic). It could probably be better, but this works.
Adding extra hardware can be risky and may damage the MPU if, by mistake, the MCU’s 3.3 V pin comes into contact with the MPU’s 1.8 V pin. Therefore, a safer and more robust approach is to solve this issue in software by ensuring that the MPU has fully started before the Bridge is initialized on the MCU side.
I have seen some people putting the followin lines in the setup() fnction of the MCU.
Bridge.begin();
delay(5000);