Versions in this module Expand all Collapse all v0 v0.1.5 Feb 10, 2024 Changes in this version + const PacketMTU + const Start1 + const Start2 + const WaitAfterWake + type Client struct + func NewClient(sc *StreamConn, errorOnNoHandler bool) *Client + func (c *Client) Connect() error + func (c *Client) Handle(kind proto.Message, handler MessageHandler) + func (c *Client) SendToRadio(msg *meshtastic.ToRadio) error + type HandlerFunc func(message proto.Message) + type StreamConn struct + DebugWriter io.Writer + func NewClientStreamConn(conn io.ReadWriteCloser) (*StreamConn, error) + func NewRadioStreamConn(conn io.ReadWriteCloser) *StreamConn + func (c *StreamConn) Close() (err error) + func (c *StreamConn) Read(out proto.Message) error + func (c *StreamConn) ReadBytes() ([]byte, error) + func (c *StreamConn) Write(in proto.Message) error + func (c *StreamConn) WriteBytes(data []byte) error v0.1.4 Jan 23, 2024 Changes in this version + type HandlerRegistry struct + func NewHandlerRegistry(errorOnNoHandler bool) *HandlerRegistry + func (r *HandlerRegistry) HandleMessage(msg proto.Message) error + func (r *HandlerRegistry) RegisterHandler(msg proto.Message, handler MessageHandler) + type MessageHandler func(msg proto.Message)