dmurphy
July 26th, 2010, 10:32 AM
I've modified tutorial2.lua to work with my device, but I have a question about handling responses.
When I send the command 'cc' to my device, it will respond with 'ch' followed by a number. I assume I need to use LUA patterns, but can't seem to figure out what the right syntax should be.
Here's what it looks like now:
local GetPreview = EventixTransaction:Subclass ( {
Send = {
Command = "cc",
},
Response = {
Command = 'ch',
},
})
What do I need to replace Command = 'ch' with?
Thanks!
When I send the command 'cc' to my device, it will respond with 'ch' followed by a number. I assume I need to use LUA patterns, but can't seem to figure out what the right syntax should be.
Here's what it looks like now:
local GetPreview = EventixTransaction:Subclass ( {
Send = {
Command = "cc",
},
Response = {
Command = 'ch',
},
})
What do I need to replace Command = 'ch' with?
Thanks!