restUplink

package
Version: v0.0.0-...-96f3fa0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package restUplink is used to send uplink messages to the ApplicationFrontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	NewNode(nodeID string, longitude float64, latitude float64) (*http.Response, error)
	UpdateNode(nodeID string, longitude float64, latitude float64) (*http.Response, error)
	DeleteNode(nodeID string) (*http.Response, error)
	NewSensor(nodeID string, sensorID string) (*http.Response, error)
	DeleteSensor(nodeID string, sensorID string) (*http.Response, error)
	NewData(nodeID string, message components.MessageUplinkI) (*http.Response, error)
}

Connector is the client that connects to the Rest API of the application frontend

func NewRestUplinkConnector

func NewRestUplinkConnector(ip string, apiKey string) Connector

NewRestUplinkConnector is the constructor for a Connector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL