AIS NB-IoT Library is designed to work with DEVIO NB-SHIELD I
and DEVIO NB-SHIELD I Plus
and connect to your own IoT Platform/Server. The library uses Software Serial for communication with the Arduino board.
For MEGA, connect GPIO8 to GPIO48 and GPIO09 to GPIO46.
debug(<Boolean>)
: Prints log on Serial Monitor if True
, otherwise no log will be printed.setupDevice(<serverPort>)
: sets up the device.getDeviceIP()
: returns the IP as a string.str2HexStr(< String data>)
: returns the string data as a hex string.pingIP(serverIP)
: returns pingRESP
with values addr
, ttl
, and rtt
.sendUDPmsgStr(<serverIP>,< serverPort>,<udpData>)
: sends a string message with a maximum size of 512 bytes.sendUDPmsg (<serverIP>,< serverPort>,<udpDataHEX>)
: sends a hex string message with a maximum size of 512 bytes.waitResponse()
: returns UDPReceive
with values ip_address
, port
, length
, data
, and remaining_length
.DEVIO NB-SHIELD I
and DEVIO NB-SHIELD I Plus
are extension boards for Arduino UNO R3 with a compatible pinout. For pinout information, please visit “www.ais.co.th/aiap” in the “IoT Dev Center” menu.
DEVIO NB-SHIELD I
or DEVIO NB-SHIELD I Plus
to your Arduino board.สนใจสั่งซื้อ DEVIO NB-Shield I Plus ได้ที่ AIS online store หรือ AIS Playground
สอบถามข้อมูลเพิ่มเติม ติดต่อ DEVIO FB Fanpage