Documentation ¶
Index ¶
- func Bytes(n int) []byte
- func Codr() string
- func Datr() string
- func Freq() float32
- func Intn(n int) int
- func Lsnr() float32
- func Rssi() int32
- func String(n int) string
- func Token() []byte
- type TTNRandom
- func (r *TTNRandom) Bytes(n int) []byte
- func (r *TTNRandom) Codr() string
- func (r *TTNRandom) Datr() string
- func (r *TTNRandom) Freq() float32
- func (r *TTNRandom) Intn(n int) int
- func (r *TTNRandom) Lsnr() float32
- func (r *TTNRandom) Rssi() int32
- func (r *TTNRandom) String(n int) string
- func (r *TTNRandom) Token() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TTNRandom ¶
type TTNRandom struct {
// contains filtered or unexported fields
}
TTNRandom is used as a wrapper around math/rand
func New ¶
func New() *TTNRandom
New returns a new TTNRandom, in most cases you can just use the global funcs
func (*TTNRandom) Lsnr ¶
Lsnr generates LoRa SNR ratio in db. Tend towards generating good ratio with low noise
Click to show internal directories.
Click to hide internal directories.