Skip to content

AWS IOT Bridge Client for Arduino Uno / Mega with Ethernet Shield

License

Notifications You must be signed in to change notification settings

dnavarrom/aws_mqtt_arduino_uno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

aws_mqtt_arduino_uno

AWS IOT MQTT Bridge Client example for Arduino Uno / Mega with Ethernet Shield

Arduino Example connection to AWS IOT Mosquitto Broker

Tested on:

  • Arduino UNO + Etheret Shield
  • Arduino MEGA 2560 Clone + Ethernet Shield

Instructions

1. Install libraries using this guide

Library 1: PubSubClient Library 2: ArduinoJson Library 3: SoftReset

2. Check if Docker AWS Bridge is up and running

mosquitto_pub -h localhost -p 1883 -q 1 -d -t localgateway_to_awsiot  -i clientid1 -m "{\"key\": \"helloFromLocalGateway\"}"

Setup intructions here

3. Setup arduino sketch

const char* mqttserver = "192.168.0.14";               // Local Broker
const int mqttport = 1883;                             // MQTT port
String subscriptionTopic = "awsiot_to_localgateway";   // Get messages from AWS
String publishTopic = "localgateway_to_awsiot";        // Send messages to AWS 

4. RUN

You should see mesages in your AWS IOT Console, Docker Logs and Arduino Serial Console

About

AWS IOT Bridge Client for Arduino Uno / Mega with Ethernet Shield

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages