Save more than 10%

Buy an AirQ 305 wireless control board in bundle with an AirQ ShielD and you'll save more than 10%
View product

Save more than 10%

Save up to 10%

Buy an AirQ 310 wireless control board, with 6 relays and battery backup circuit, and you'll get a free Arduino AirQ ShielD
View product

Save up to 10%

How to use AirQ ShielD to build custom wireless solutions

A lot of you asked us if AirQ ShielD could be used to build customs hardware solutions without using other AirQ Networks devices. And the answer is definitively yes. AirQ ShielD is nothing more than a transceiver and it is designed to accept commands that send bytes to another AirQ ShielD. To develop a wireless solution using AirQ ShielD you need:

  • At least two AirQ ShielDs (but you can use how many you need).
  • Two Arduino Uno boards.
  • The sNET library for Arduino

AirQ ShielD allows sending data messages to another AirQ ShielD. The maximum number of bytes that can be sent is 10. To a send a message to another shield the sNET::sendToDevice() method can be used. Let’s do an example. Suppose that you received two AirQ ShielDs: one with sNET address equal to 191.0.0.11 and the other one with the address 191.0.0.12. And suppose that you want to send the “HELLO” string from 191.0.0.11 board to 191.0.0.12. The following Arduino code is all you need.

The code is self-explanatory: the first 4 parameters are the address of the remote shield that will receive the message; the fifth parameter (0x1) says sNET library to send a data message; the remaining part is the data we want to send and its size. If you want to send a message to all AirQ ShielD on the same sNET network, you can use the sNET::sendBroadcast() method:

 

Be Sociable, Share!

Posted on by admin in Arduino Leave a comment

Add a Comment