27 lines
966 B
Go
27 lines
966 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package bootstrap
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
// Inactive Thing is created, but not able to exchange messages using Mainflux.
|
|
Inactive State = iota
|
|
// Active Thing is created, configured, and whitelisted.
|
|
Active
|
|
)
|
|
|
|
// State represents corresponding Mainflux Thing state. The possible Config States
|
|
// as well as description of what that State represents are given in the table:
|
|
// | State | What it means |
|
|
// |----------+--------------------------------------------------------------------------------|
|
|
// | Inactive | Thing is created, but isn't able to communicate over Mainflux |
|
|
// | Active | Thing is able to communicate using Mainflux |.
|
|
type State int
|
|
|
|
// String returns string representation of State.
|
|
func (s State) String() string {
|
|
return strconv.Itoa(int(s))
|
|
}
|