Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveModeChange = []byte{0xff, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0xf8}
View Source
var Correct = []byte{0xff, 0x05, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8}
View Source
var Logmode = DebugLog
View Source
var MODBUS_RTU = []byte{0x05, 0x03, 0x00, 0x05, 0x00, 0x01, 0x94, 0x07}
View Source
var QueryModeChange = []byte{0xff, 0x05, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0xf7}
View Source
var QueryPPM = []byte{0xff, 0x05, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0xf5}
Functions ¶
func CRC ¶
CRC not implement from: https://github.com/sigurn/crc8
Types ¶
type CO2Sensor ¶
func NewCO2Sensor ¶
func (*CO2Sensor) SendActiveModeChange ¶
func (*CO2Sensor) SendCorrect ¶
func (*CO2Sensor) SendMODBUS_RTU ¶
func (*CO2Sensor) SendQueryModeChange ¶
Click to show internal directories.
Click to hide internal directories.