tag

package
v0.0.0-...-c8675c1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReachedFreezer

func ReachedFreezer(tag Tag, freezerSensorName string, trackingEPCs map[string]interface{}) bool

ReachedFreezer verifies if tag's current location is in freezerSensorName (destination) and it's a tracking epc

Types

type InventoryEvent

type InventoryEvent struct {
	Data []Tag `json:"data"`
}

InventoryEvent holds EdgeX events schema

type LocationHistory

type LocationHistory struct {
	Location  string `json:"location"`
	Timestamp int64  `json:"timestamp"`
	Source    string `json:"source"`
}

LocationHistory is the model to record the whereabouts history of a tag

type Tag

type Tag struct {
	// URI string representation of tag
	URI string `json:"uri"`
	// SGTIN EPC code
	Epc string `json:"epc"`
	// ProductID
	ProductID string `json:"product_id"`
	// Part of EPC, denotes packaging level of the item
	FilterValue int64 `json:"filter_value"`
	// Tag manufacturer ID
	Tid string `json:"tid"`
	// TBD
	EpcEncodeFormat string `json:"encode_format"`
	// Facility ID
	FacilityID string `json:"facility_id"`
	// Last event recorded for tag
	Event string `json:"event"`
	// Arrival time in milliseconds epoch
	Arrived int64 `json:"arrived"`
	// Tag last read time in milliseconds epoch
	LastRead int64 `json:"last_read"`
	// Where tags were read from (fixed or handheld)
	Source string `json:"source"`
	// Array of objects showing history of the tag's location
	LocationHistory []LocationHistory `json:"location_history"`
	// Current state of tag, either ’present’ or ’departed’
	EpcState string `json:"epc_state"`
	// Customer defined state
	QualifiedState string `json:"qualified_state"`
	// Time to live, used for db purging - always in sync with last read
	TTL time.Time `json:"ttl"`
	// Customer defined context
	EpcContext string `json:"epc_context"`
	// Probability item is actually present
	Confidence float64 `json:"confidence"`
	// Cycle Count indicator
	CycleCount bool `json:"-"`
}

Tag is the model containing items for a RFID Tag

Jump to

Keyboard shortcuts

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