Skip to content

An arduino library for communication with 3G SIM5320 chipset, and implementation of MQTT protocol using AT commands

Notifications You must be signed in to change notification settings

akifrabbani/Arduino-SIM5320-MQTT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-SIM5320-MQTT

An arduino library for communication with 3G SIM5320 chipset, and implementation of MQTT protocol using AT commands

Usage

MQTT_Protocol.ino

Contains functions for basic MQTT actions.

MQTT Open: Opens TCP port on SIM5320 at given url and port. Must be called first before other functions are used.

MQTT Connect: Connects to broker by sending CONNECT action and verifies connection by listening for CONNACK response.

MQTT Subscribe: Subscribes to a specified topic using SUBSCRIBE action and verifies subscription by listening for SUBACK response.

MQTT Publish: Publishes specified message using PUBLISH action to connected broker.

MQTT Pingreq: Pings broker with PINGREQ action and verifies response with PINGRESP action. Useful for keeping connection alive.

SIM_Interface.ino

Functions for communicating reliably with SIM5320 chip. Backend use required for MQTT_Protocol.ino.

Must configure InitSim5320 function to work with sim card by specifying service provider. 'yesinternet' by default.

Contains many useful functions such as reliably sending AT commands and reading SIM5320 buffer responses.

About

An arduino library for communication with 3G SIM5320 chipset, and implementation of MQTT protocol using AT commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%