Categorygithub.com/TheThingsNetwork/go-app-sdk
modulepackage
0.0.0-20191121100818-5bae20ae2b27
Repository: https://github.com/thethingsnetwork/go-app-sdk.git
Documentation: pkg.go.dev

# README

The Things Network Go SDK

Build Status Coverage Status GoDoc

The Things Network

Usage

Assuming you're working on a project github.com/your-username/your-project:

cd your-project
go mod init github.com/your-username/your-project
go get github.com/TheThingsNetwork/go-app-sdk

See the examples on GoDoc.

License

Source code for The Things Network is released under the MIT License, which can be found in the LICENSE file. A list of authors can be found in the AUTHORS file.

# Functions

MoveDevice moves a device to another application.
NewCommunityConfig creates a new configuration for the API client that is pre-configured for the Public Community Network.
NewConfig creates a new configuration for the API client.

# Variables

ClientVersion to use.
DialOptions to use when connecting to components.

# Structs

ClientConfig contains the configuration for the API client.
Device in an application.
SparseDevice contains most, but not all fields of the device.

# Interfaces

ApplicationManager manages an application.
ApplicationPubSub interface for publishing and subscribing to devices in an application.
Client interface for The Things Network's API.
DeviceManager manages devices within an application.
DevicePub interface for publishing downlink messages to the device.
DevicePubSub combines the DevicePub and DeviceSub interfaces.
DeviceSub interface for subscribing to uplink messages and events from the device.
Simulator simulates messages for devices.

# Type aliases

DeviceList is a slice of *SparseDevice.