B4J Question Code module : Event lost or bad design ?

CR95

Active Member
Licensed User
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,
 

CR95

Active Member
Licensed User
Thanks Erel. You showed me the way. Problem is not coming from the program but from the programmer : I forgot to stop the previous program and I discovered that sometimes the Arduino_NewData event was fired in the "old" program and sometimes in the "in test" program.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…