S Scantech Well-Known Member Licensed User Longtime User Oct 8, 2012 #1 Will the Serial_Connected event get raised in the service module? I am having hard time getting it going in the service module. Serial is dim in Service module Process_Globals and initialized in Create. I recently added a activity form and needed to transfer the serial to service module. That way, both activities can work with the Serial_Connected Event. Last edited: Oct 8, 2012
Will the Serial_Connected event get raised in the service module? I am having hard time getting it going in the service module. Serial is dim in Service module Process_Globals and initialized in Create. I recently added a activity form and needed to transfer the serial to service module. That way, both activities can work with the Serial_Connected Event.
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2012 #2 It is recommended to use a service for Serial communication. It works fine from a service. Upvote 0
S Scantech Well-Known Member Licensed User Longtime User Oct 9, 2012 #3 Yeah, it is doable. Got it going. However, calling Serial.connect from activities will not work. I set the Serial.connect in the Service Module and use the Callsub feature and that did the trick. Upvote 0
Yeah, it is doable. Got it going. However, calling Serial.connect from activities will not work. I set the Serial.connect in the Service Module and use the Callsub feature and that did the trick.
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2012 #4 It is better to use CallSubDelayed: Using CallSubDelayed to interact between activities and services Upvote 0