G Galbas Member Licensed User Longtime User Feb 8, 2012 #1 Hi people! How can I declare all about UDP routines inside code module? I want to create a module called WiFi and I want to put all declarations and events like UDP_PacketArrived inside this module. Is it possible? Is there another way to check bytes received? Thanks in advance, Galbas
Hi people! How can I declare all about UDP routines inside code module? I want to create a module called WiFi and I want to put all declarations and events like UDP_PacketArrived inside this module. Is it possible? Is there another way to check bytes received? Thanks in advance, Galbas
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2012 #2 The only limitation of code modules is that they don't support events. The events will fire in the activity or service that called the code module (when the object was initialized). The solution is to delegate the event from the activity to the code module. Upvote 0
The only limitation of code modules is that they don't support events. The events will fire in the activity or service that called the code module (when the object was initialized). The solution is to delegate the event from the activity to the code module.
G Galbas Member Licensed User Longtime User Feb 9, 2012 #3 Hi Erel! I understood what you mean about events, but I still with a doubt. Can I declare UDPSocket inside my code module and the event UDP_PackedArrived in the activity? Could you send me any example? Thanks, Galbas. Upvote 0
Hi Erel! I understood what you mean about events, but I still with a doubt. Can I declare UDPSocket inside my code module and the event UDP_PackedArrived in the activity? Could you send me any example? Thanks, Galbas.
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2012 #4 Yes. It will work. Build a small program and you will see it. Upvote 0