Skip to content

This repository contains an edge connect library client implementation and examples

License

Notifications You must be signed in to change notification settings

rigado/edgeconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rigado Edge Connect API Example

This repository contains a Golang based example for interacting with the edge connect APIs.

API Documentation

Edge Connect API

Available Functionality

  • Broadcasts
  • Get/Set Radio Modes
  • Tau board support
  • BLE Scanning
  • Firmware Programming
  • Radio Reset

Demo Binary

A demo application is provided in examples/api. This application can perform most API operations.

Building the Demo

Prerequisites

Install go if you don't have it. Get Go here

** Make sure to set $GOPATH **

Clone the repo into $GOPATH/src/github.com/rigado:

cd $GOPATH
mkdir -p src/github.com/rigado
cd src/github.com/rigado
git clone https://github.com/rigado/edgeconnect.git

Install dep if you don't have it.

On MacOS w/ Homebrew:

brew install dep
brew upgrade dep

On other platforms:

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Then install dependencies by running:

dep ensure

Build demo binaries

In the edgeconnect/examples/api directory, run:

make clean && make (defaults to amd64)

The binary can be built for either amd64 (default) or arm architectures. Run make help for available commands.

The binaries are located in the build folder.

Running the API demo on a gateway

cd examples/api
make arm
scp build/ecapi_arm <gateway_ip>:~
ssh <gateway_ip>
chmod +x ecapi_arm (may not be necessary)
sudo ./ecapi (options)

About

This repository contains an edge connect library client implementation and examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages