Versions in this module Expand all Collapse all v1 v1.0.2 Oct 3, 2023 v1.0.1 Oct 3, 2023 Changes in this version + type Packet struct + func NewPacket(expectedLen uint16) (*Packet, error) + func (pkt *Packet) AddBytes(bytes []byte) bool + func (pkt *Packet) GetBytes() []byte + func (pkt *Packet) TrimEnd(count int) + type SerialSesn struct + func NewSerialSesn(sx *SerialXport, cfg sesn.SesnCfg) (*SerialSesn, error) + func (s *SerialSesn) AbortRx(seq uint8) error + func (s *SerialSesn) Close() error + func (s *SerialSesn) CoapIsTcp() bool + func (s *SerialSesn) Filters() (nmcoap.TxMsgFilter, nmcoap.RxMsgFilter) + func (s *SerialSesn) IsOpen() bool + func (s *SerialSesn) ListenCoap(mc nmcoap.MsgCriteria) (*nmcoap.Listener, error) + func (s *SerialSesn) MgmtProto() sesn.MgmtProto + func (s *SerialSesn) MtuIn() int + func (s *SerialSesn) MtuOut() int + func (s *SerialSesn) Open() error + func (s *SerialSesn) RxAccept() (sesn.Sesn, *sesn.SesnCfg, error) + func (s *SerialSesn) RxCoap(opt sesn.TxOptions) (coap.Message, error) + func (s *SerialSesn) SetFilters(txFilter nmcoap.TxMsgFilter, rxFilter nmcoap.RxMsgFilter) + func (s *SerialSesn) StopListenCoap(mc nmcoap.MsgCriteria) + func (s *SerialSesn) TxCoap(m coap.Message) error + func (s *SerialSesn) TxRxMgmt(m *nmp.NmpMsg, timeout time.Duration) (nmp.NmpRsp, error) + func (s *SerialSesn) TxRxMgmtAsync(m *nmp.NmpMsg, timeout time.Duration, ch chan nmp.NmpRsp, errc chan error) error + type SerialXport struct + func NewSerialXport(cfg *XportCfg) *SerialXport + func (sx *SerialXport) BuildSesn(cfg sesn.SesnCfg) (sesn.Sesn, error) + func (sx *SerialXport) Rx() ([]byte, error) + func (sx *SerialXport) Start() error + func (sx *SerialXport) Stop() error + func (sx *SerialXport) Tx(bytes []byte) error + type XportCfg struct + Baud int + DevPath string + Mtu int + ReadTimeout time.Duration + func NewXportCfg() *XportCfg