WLAN module
Posted: Sun Aug 19, 2012 6:08 pm
I am trying to work out a way of sending data to and receiving data from an HTML page using the WLAN module.
I have worked out how to send 4 individual Byte sized variables using the "Swap Variables" indexed 0-3 and that works fine. I need to be able to send String data of variable lengths to and from the server using the URL in the same way as the swap variables. Can this be done using the current macros available?
The application this is being used for is a home lighting and control system where a central control node has the wifi module and a series of sub nodes on a CAN bus are used to control the various lights (LED) around the house and garden. The lights are controlled either manually via the local nodes or centrally via the wifi node and an iPod, iPad or iPhone. Any changes made to light settings locally are then reported back to the central node using CAN bus messages. The central wifi node is responsible for maintaining tyhe system status which can then be reported to a wifi enabled device via an HTML page. To this end I need to be able to construct a reasonably detailed command string to send via an HTML page to the wifi node for onward distribution to the relevant node on the CAN bus.
At the moment I do this via the 4 swap variables but this limits what I can do.
Any ideas?
many thanks
Sefi+
I have worked out how to send 4 individual Byte sized variables using the "Swap Variables" indexed 0-3 and that works fine. I need to be able to send String data of variable lengths to and from the server using the URL in the same way as the swap variables. Can this be done using the current macros available?
The application this is being used for is a home lighting and control system where a central control node has the wifi module and a series of sub nodes on a CAN bus are used to control the various lights (LED) around the house and garden. The lights are controlled either manually via the local nodes or centrally via the wifi node and an iPod, iPad or iPhone. Any changes made to light settings locally are then reported back to the central node using CAN bus messages. The central wifi node is responsible for maintaining tyhe system status which can then be reported to a wifi enabled device via an HTML page. To this end I need to be able to construct a reasonably detailed command string to send via an HTML page to the wifi node for onward distribution to the relevant node on the CAN bus.
At the moment I do this via the 4 swap variables but this limits what I can do.
Any ideas?
many thanks
Sefi+