Using AirConsole Controller Generator with C2

Get help using Construct 2

Post » Wed Aug 30, 2017 2:22 am

I am having trouble figuring out how to program in construct 2 receiving the messages sent through controller.hmtl with the controller generator code.
Thanks for your help
B
5
S
2
Posts: 3
Reputation: 431

Post » Tue Sep 12, 2017 6:02 pm

Hey!

You can get the messages using the trigger "On message". Then read the message with AirConsole.Message. If it's a multipart message (the case if you use the generator), you can read it by loading a c2dictionary with AirConsole.MessageAsJSON. Then you access the data as you would with a Dictionary
B
32
S
11
G
3
Posts: 214
Reputation: 4,267


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests