An open API service indexing awesome lists of open source software.

https://github.com/mohdrashid/raspberrypi


https://github.com/mohdrashid/raspberrypi

iot mysql php python raspberrypi

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

#Raspberry Server Communication
This project was started to create a module which can be used to help raspberry pi communicate with servers located in the internet, allowing it access data of other devices or pass collected data to server so that others can make use of it.




Use the sudo command below to move created header file [server_io.py] to python library folder in Raspberry Pi




sudo mv ~/place_where_its_located/server_io.py /usr/lib/pythonx.y


replace x.y with persion number of your python compiler

Once done the header can be imported by writing the following command in python:


import server_io as Server



To access function in the header use Server.FunctionName() after importing the header.
For example to get mac address, use Server.get_mac()