Skip to content

xhan0o/AdvantechWifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Request Listener

Request listener

Hardware : Advantech Wise 4012

Technology: Python-Flask

Motivation: Server integration or data processing

Files

RequestListener.py : Works for every request , displays request data on commandline

AdvantechPostListener.py : Listens and maps 'Push Notifications(JSON)' to python list.

Set up python-flask on Raspberry pi

  1. Installing pip
pi@raspberrypi ~ $ sudo apt-get install python-pip
  1. Installing Flask
pi@raspberrypi ~ $ sudo pip install flask

Run Server

pi@raspberrypi ~ $ sudo python RequestListner.py
 * Running on http://0.0.0.0:80/ 
 * Restarting with reloader
 

Server will start at ip of host (you can find that by ifconfig)

JSON

readings : dictonary

readings = [{"Data": "Sensor Data",
             "MAC": "Mac Address",
             "PE": "PE",
             "Time": "Time Stamp",
             "UID": "Device name",
             "id": 1}]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages