I splitted a long B4J NonUI application in MainPage plus 2 code modules (for better lisibility).
In one code module, I send a command to an Arduino (connected with USBSerial library) and I wait for the Arduino's response through Arduino_NewData.
This works well excepted if the second code module has a "waiting" Telecom event after the Arduino's send command. In this case, the Telecom event (in the second code module) is proceed BUT the Arduino_NewData (in the first module) seems to be lost as it is not "restarted" at the end of the Telecom process.
Is it a bad design of my global process ? Or do I miss something ?
Thanks for your help,
In one code module, I send a command to an Arduino (connected with USBSerial library) and I wait for the Arduino's response through Arduino_NewData.
This works well excepted if the second code module has a "waiting" Telecom event after the Arduino's send command. In this case, the Telecom event (in the second code module) is proceed BUT the Arduino_NewData (in the first module) seems to be lost as it is not "restarted" at the end of the Telecom process.
Is it a bad design of my global process ? Or do I miss something ?
Thanks for your help,