Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectParams ¶
type ConnectParams struct {
PeripheralID string `json:"peripheralId"`
}
func ConnectParamsFromJSON ¶
func ConnectParamsFromJSON(j json.RawMessage) (ConnectParams, error)
type DiscoverFilter ¶
type DiscoverParams ¶
type DiscoverParams struct {
Filters []DiscoverFilter `json:"filters"`
}
func DiscoverParamsFromJSON ¶
func DiscoverParamsFromJSON(j json.RawMessage) (DiscoverParams, error)
type NotificationsParams ¶
type NotificationsParams struct { ServiceID uuid.UUID `json:"serviceId"` CharacteristicID uuid.UUID `json:"characteristicId"` }
func NotificationsParamsFromJSON ¶
func NotificationsParamsFromJSON(j json.RawMessage) (NotificationsParams, error)
type ReadParams ¶
type ReadParams struct { ServiceID uuid.UUID `json:"serviceId"` CharacteristicID uuid.UUID `json:"characteristicId"` StartNotifications bool `json:"startNotifications"` }
func ReadParamsFromJSON ¶
func ReadParamsFromJSON(j json.RawMessage) (ReadParams, error)
type UpdateParams ¶
type UpdateParams struct { ServiceID uuid.UUID `json:"serviceId"` CharacteristicID uuid.UUID `json:"characteristicId"` Message string `json:"message"` Encoding string `json:"encoding,omitempty"` WithResponse bool `json:"withResponse"` }
func UpdateParamsFromJSON ¶
func UpdateParamsFromJSON(j json.RawMessage) (UpdateParams, error)
Click to show internal directories.
Click to hide internal directories.