api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkServerAPI

type NetworkServerAPI struct{}

NetworkServerAPI defines the nework-server API.

func NewNetworkServerAPI

func NewNetworkServerAPI() *NetworkServerAPI

NewNetworkServerAPI returns a new NetworkServerAPI.

func (*NetworkServerAPI) ActivateDevice

ActivateDevice activates a device (ABP).

func (*NetworkServerAPI) CreateDevice

CreateDevice creates the given device.

func (*NetworkServerAPI) CreateDeviceProfile

CreateDeviceProfile creates the given device-profile. The RFRegion field will get set automatically according to the configured band.

func (*NetworkServerAPI) CreateDeviceQueueItem

CreateDeviceQueueItem creates the given device-queue item.

func (*NetworkServerAPI) CreateGateway

CreateGateway creates the given gateway.

func (*NetworkServerAPI) CreateGatewayProfile

CreateGatewayProfile creates the given gateway-profile.

func (*NetworkServerAPI) CreateMACCommandQueueItem

CreateMACCommandQueueItem adds a data down MAC command to the queue. It replaces already enqueued mac-commands with the same CID.

func (*NetworkServerAPI) CreateRoutingProfile

CreateRoutingProfile creates the given routing-profile.

func (*NetworkServerAPI) CreateServiceProfile

CreateServiceProfile creates the given service-profile.

func (*NetworkServerAPI) DeactivateDevice

DeactivateDevice de-activates a device.

func (*NetworkServerAPI) DeleteDevice

DeleteDevice deletes the device matching the given DevEUI.

func (*NetworkServerAPI) DeleteDeviceProfile

DeleteDeviceProfile deletes the device-profile matching the given id.

func (*NetworkServerAPI) DeleteGateway

DeleteGateway deletes a gateway.

func (*NetworkServerAPI) DeleteGatewayProfile

DeleteGatewayProfile deletes the gateway-profile matching a given id.

func (*NetworkServerAPI) DeleteRoutingProfile

DeleteRoutingProfile deletes the routing-profile matching the given id.

func (*NetworkServerAPI) DeleteServiceProfile

DeleteServiceProfile deletes the service-profile matching the given id.

func (*NetworkServerAPI) FlushDeviceQueueForDevEUI

FlushDeviceQueueForDevEUI flushes the device-queue for the given DevEUI.

func (*NetworkServerAPI) GetDevice

GetDevice returns the device matching the given DevEUI.

func (*NetworkServerAPI) GetDeviceActivation

GetDeviceActivation returns the device activation details.

func (*NetworkServerAPI) GetDeviceProfile

GetDeviceProfile returns the device-profile matching the given id.

func (*NetworkServerAPI) GetDeviceQueueItemsForDevEUI

GetDeviceQueueItemsForDevEUI returns all device-queue items for the given DevEUI.

func (*NetworkServerAPI) GetGateway

GetGateway returns data for a particular gateway.

func (*NetworkServerAPI) GetGatewayProfile

GetGatewayProfile returns the gateway-profile given an id.

func (*NetworkServerAPI) GetGatewayStats

GetGatewayStats returns stats of an existing gateway.

func (*NetworkServerAPI) GetNextDownlinkFCntForDevEUI

GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. This also takes device-queue items for the given DevEUI into consideration. In case the device is not activated, this will return an error as no device-session exists.

func (*NetworkServerAPI) GetRandomDevAddr

GetRandomDevAddr returns a random DevAddr.

func (*NetworkServerAPI) GetRoutingProfile

GetRoutingProfile returns the routing-profile matching the given id.

func (*NetworkServerAPI) GetServiceProfile

GetServiceProfile returns the service-profile matching the given id.

func (*NetworkServerAPI) GetVersion

GetVersion returns the LoRa Server version.

func (*NetworkServerAPI) SendProprietaryPayload

SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type.

func (*NetworkServerAPI) StreamFrameLogsForDevice

StreamFrameLogsForDevice returns a stream of frames seen by the given device.

func (*NetworkServerAPI) StreamFrameLogsForGateway

StreamFrameLogsForGateway returns a stream of frames seen by the given gateway.

func (*NetworkServerAPI) UpdateDevice

UpdateDevice updates the given device.

func (*NetworkServerAPI) UpdateDeviceProfile

UpdateDeviceProfile updates the given device-profile. The RFRegion field will get set automatically according to the configured band.

func (*NetworkServerAPI) UpdateGateway

UpdateGateway updates an existing gateway.

func (*NetworkServerAPI) UpdateGatewayProfile

UpdateGatewayProfile updates the given gateway-profile.

func (*NetworkServerAPI) UpdateRoutingProfile

UpdateRoutingProfile updates the given routing-profile.

func (*NetworkServerAPI) UpdateServiceProfile

UpdateServiceProfile updates the given service-profile.

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL