If I uncomment those two lines the hub response goes to myfunction() but the response is different. It is something like "hubitat.device.HubResponse@94ee77"
and the code blows up on parseLanMessage() because its invalid for the returned data.
Documentation on this is scarce and I cannot find a format where the LanMessage is passed to the alternate callback function. Do I have to specify an option to force the LAN data to be returned to the specified callback function or am I supposed to use the "@94ee77" in some way to retrieve the data.
I could do it all within the parse function but being able to separate different response types into alternate callbacks sure makes the code more readable.
I certainly would be willing to use httpGet if I had a good example of utilizing the callback method properly. But searching on "HubAction callback" produces a pretty thin list.
Is this something you have an example of that you would be willing to share?
After trying out your example I can see that the response I receive when I correctly specify an alternate callback is structured similarly to the response I receive when using your asynchttp method.
So it would seem to me that an alternate callback is forced into using a different type of response and thus parseLanMessage is no longer valid when you use an alternate callback.
For simplicity I will probably just stick with running everything through parse() and then branching off from there. Thanks again for your help.