Hello
I don't know if resumable subs can help me: I send a command to my starter.
CallSub(Starter, "recup_info_object")
and this is the function in my starter
Public Sub recup_info_object
ManagerD.WriteData("0000fe59-0000-1000-8000-00805f9b34fb", "8ec90001-f315-4f60-9fb8-838830daea50", Array As Byte(0x06,0x01))
End Sub
This command send to my device an instruction. When the device send to me the information that I ask this function
Sub Manager_DataAvailable (Services As String, Characteristics As Map)
CallSub3(Main, "DataAvailable", Services, Characteristics)
End Sub
handle the response, and in my main I treate the informations. If my command is a success I can continue the code. I have a lot of command like this and that's why I need to be sure to handle the response everytime.
I don't know if it can help you more :/
Maybe you're right with resumable subs but maybe there is an other option =)
Thanks !