Documentation ¶
Index ¶
- func BuildBleXport(bc *BleConfig) (xport.Xport, error)
- func BuildBllSesnCfg(bc *BllConfig) (bll.BllSesnCfg, error)
- func BuildSerialXport(sc *nmserial.XportCfg) (*nmserial.SerialXport, error)
- func ConnTypeToString(ct ConnType) string
- func FillMtechLoraSesnCfg(mc *mtech_lora.LoraConfig, sc *sesn.SesnCfg) error
- func FillSesnCfg(bx *nmble.BleXport, bc *BleConfig, sc *sesn.SesnCfg) error
- func InitGlobalConnProfileMgr() error
- func NewMtechLoraConfig() *mtech_lora.LoraConfig
- func ParseMtechLoraConnString(cs string) (*mtech_lora.LoraConfig, error)
- func ParseSerialConnString(cs string) (*nmserial.XportCfg, error)
- type BleConfig
- type BllConfig
- type ConnProfile
- type ConnProfileMgr
- func (cpm *ConnProfileMgr) AddConnProfile(cp *ConnProfile) error
- func (cpm *ConnProfileMgr) DeleteConnProfile(name string) error
- func (cpm *ConnProfileMgr) GetConnProfile(pName string) (*ConnProfile, error)
- func (cpm *ConnProfileMgr) GetConnProfileList() ([]*ConnProfile, error)
- func (cpm *ConnProfileMgr) Init() error
- type ConnType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBllSesnCfg ¶
func BuildBllSesnCfg(bc *BllConfig) (bll.BllSesnCfg, error)
func BuildSerialXport ¶
func BuildSerialXport(sc *nmserial.XportCfg) (*nmserial.SerialXport, error)
func ConnTypeToString ¶
func FillMtechLoraSesnCfg ¶
func FillMtechLoraSesnCfg(mc *mtech_lora.LoraConfig, sc *sesn.SesnCfg) error
func InitGlobalConnProfileMgr ¶
func InitGlobalConnProfileMgr() error
func NewMtechLoraConfig ¶
func NewMtechLoraConfig() *mtech_lora.LoraConfig
func ParseMtechLoraConnString ¶
func ParseMtechLoraConnString(cs string) (*mtech_lora.LoraConfig, error)
Types ¶
type BleConfig ¶
type BleConfig struct { PeerAddrType bledefs.BleAddrType PeerAddr bledefs.BleAddr PeerName string OwnAddrType bledefs.BleAddrType OwnAddr bledefs.BleAddr // Connection timeout, in seconds. ConnTimeout float64 BlehostdPath string ControllerPath string HciIdx int }
func NewBleConfig ¶
func NewBleConfig() *BleConfig
func ParseBleConnString ¶
type BllConfig ¶
type BllConfig struct { CtlrName string OwnAddrType bledefs.BleAddrType PeerId string PeerName string // Connection timeout, in seconds. ConnTimeout float64 HciIdx int }
func NewBllConfig ¶
func NewBllConfig() *BllConfig
func ParseBllConnString ¶
type ConnProfile ¶
type ConnProfile struct { Name string `json:"MyName"` Type ConnType `json:"MyType"` ConnString string `json:"MyConnString"` }
func NewConnProfile ¶
func NewConnProfile() *ConnProfile
func SortConnProfs ¶
func SortConnProfs(cps []*ConnProfile) []*ConnProfile
func (*ConnProfile) String ¶
func (p *ConnProfile) String() string
type ConnProfileMgr ¶
type ConnProfileMgr struct {
// contains filtered or unexported fields
}
func GlobalConnProfileMgr ¶
func GlobalConnProfileMgr() *ConnProfileMgr
func NewConnProfileMgr ¶
func NewConnProfileMgr() (*ConnProfileMgr, error)
func (*ConnProfileMgr) AddConnProfile ¶
func (cpm *ConnProfileMgr) AddConnProfile(cp *ConnProfile) error
func (*ConnProfileMgr) DeleteConnProfile ¶
func (cpm *ConnProfileMgr) DeleteConnProfile(name string) error
func (*ConnProfileMgr) GetConnProfile ¶
func (cpm *ConnProfileMgr) GetConnProfile(pName string) (*ConnProfile, error)
func (*ConnProfileMgr) GetConnProfileList ¶
func (cpm *ConnProfileMgr) GetConnProfileList() ([]*ConnProfile, error)
func (*ConnProfileMgr) Init ¶
func (cpm *ConnProfileMgr) Init() error
type ConnType ¶
type ConnType int
func ConnTypeFromString ¶
func (*ConnType) MarshalJSON ¶
func (*ConnType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.