iapi

package
v0.0.0-...-c4ba475 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token string

Functions

func BytesToString

func BytesToString(data []byte) string

func DecodedData

func DecodedData(data []byte) string

func GetToken

func GetToken(server string, user string, psw string) string
func SendDownlink(server string, apitoken string, devEUI []lorawan.EUI64, prefix string, fport uint8, data []byte, confirmed bool)

func SendDownlink(server string, apitoken string, downDevices DownlinkDevices) {

func SendDownlinkLoop

func SendDownlinkLoop(waitduration time.Duration, sduration time.Duration, server string, apitoken string, interval time.Duration, devEUI []lorawan.EUI64, prefix string, fport uint8, data []byte, confirmed bool)

Types

type APIToken

type APIToken string

func (APIToken) GetRequestMetadata

func (a APIToken) GetRequestMetadata(ctx context.Context, url ...string) (map[string]string, error)

func (APIToken) RequireTransportSecurity

func (a APIToken) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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