xtellurian / iotedge-ble

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BLE iBeacon - IoT Edge Module

This is an IoT Edge module for Azure IoT Edge, Linux ARM32v7, tested on Raspberry Pi 3.

Docker Image

You can find the docker image here.

Deploying

Include this module in your deployment.template.json file:

"modules": {
  "iBeacon": {
    "version": "1.0",
    "type": "docker",
    "status": "running",
    "restartPolicy": "always",
    "settings": {
      "image": "flanagan89/iotedgemodule-ibeacon:0.0.12-arm32v7",
      "createOptions": "{\"NetworkingConfig\":{\"EndpointsConfig\": {\"host\": {}}},\"HostConfig\": {\"NetworkMode\": \"host\"}}"
    },
    "env": {
      "LOG": {
        "value": "INFO"
      },
      "ATTENUATION_TIME": {
        "value": 5
      }
    }
  }
}

Important: You must set the create options with HostConfig.NetworkMode = "host" (as above)

How it works

This module uses the Bleacon package

Logging

We are using Log Please

About


Languages

Language:JavaScript 100.0%