particle

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package particle is used to interface with devices through the particle.io cloud.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PointReader added in v0.0.11

func PointReader(eventPrefix, token string, callback func(string, data.Points)) error

PointReader does a streaming http read and returns when the connection closes

Types

type Event

type Event struct {
	Data      string    `json:"data"`
	TTL       uint32    `json:"ttl"`
	Timestamp time.Time `json:"published_at"`
	CoreID    string    `json:"coreid"`
}

Event from particle

Jump to

Keyboard shortcuts

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