Skip to content

lrakai/aws-iot-device-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-iot-device-sim

Device simulators for AWS IoT in Python. Devices simulate what could be found in the kitchen of an office building.

Devices

Fire Sprinkler

  • Published to topic office/kitchen at 1Hz: smoke level of 1 if space bar is pressed, 0 otherwise
  • Subscribed to topic office/kitchen/kit-fs-001: messages written to standard output

Usage

Using certificate based mutual authentication:

python fireSprinkler.py -e <endpoint> -r <rootCAFilePath> -c <certFilePath> -k <privateKeyFilePath>

Using MQTT over WebSocket:

python fireSprinkler.py -e <endpoint> -r <rootCAFilePath> -w

Air Conditioner

  • Published to topic office/kitchen at 1Hz: temperature reading
  • Subscribed to topic office/kitchen/kit-ac-001: messages written to standard output
  • Managed state: {"air-conditioning":("off"|"on)}

Usage

Using certificate based mutual authentication:

python airConditioning.py -e <endpoint> -r <rootCAFilePath> -c <certFilePath> -k <privateKeyFilePath>

Using MQTT over WebSocket:

python airConditioning.py -e <endpoint> -r <rootCAFilePath> -w

About

Device simulators for AWS IoT in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages