billbsing / lua-azure-iot-hub

Lua Azure Iot Hub Library
MIT License
2 stars 1 forks source link

Lua Azure Iot Hub

This is my take on the Azure IotHub Client SDK for Lua.

See the wiki for a simple example using lua.

For more information see the online manual

Issues

Build

First you need to get the latest Azure Iot Hub SDK from git hub. Go to the azure-iot-sdks/c/build_all/linux folder, then run the build.sh script.

For my build I edited the build.sh file and changed the location of the build directory cmake to go at the top of the azure-iot-sdks path, instead of my home folder.

You need to build the library with the -fPIC option so the build command is:

build.sh -cl -fPIC

Once the Azure iot sdk library is built you can then go to this folder and run make.

For the build I assume that the azure-iot-sdks folder is at the same level as this folder, if not you can set the makefile environment variables to the location of the azure sdk source tree and azure sdk built libraries.

See the enviroment variables in the Makefile:

AZURE_IOTHUB_INC_DIR ?= ../azure-iot-sdks/c
AZURE_IOTHUB_LIB_DIR ?= ../azure-iot-sdks/cmake