Documentation ¶
Index ¶
- func NewRemoteStore(fetcher fetch.Interface) store.Store
- type DecodedCodecData
- type DecoderCodecExample
- type EncodedCodecData
- type EncoderCodecExample
- type EndDeviceCodecs
- type EndDeviceDecoderCodec
- type EndDeviceEncoderCodec
- type EndDeviceModel
- type Vendor
- type VendorEndDevicesIndex
- type VendorsIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DecodedCodecData ¶ added in v3.12.2
type DecoderCodecExample ¶ added in v3.12.2
type DecoderCodecExample struct { Description string `yaml:"description"` Input EncodedCodecData `yaml:"input"` Output DecodedCodecData `yaml:"output"` }
type EncodedCodecData ¶ added in v3.12.2
type EncoderCodecExample ¶ added in v3.12.2
type EncoderCodecExample struct { Description string `yaml:"description"` Input DecodedCodecData `yaml:"input"` Output EncodedCodecData `yaml:"output"` }
type EndDeviceCodecs ¶ added in v3.12.2
type EndDeviceCodecs struct { CodecID string UplinkDecoder EndDeviceDecoderCodec `yaml:"uplinkDecoder"` DownlinkDecoder EndDeviceDecoderCodec `yaml:"downlinkDecoder"` DownlinkEncoder EndDeviceEncoderCodec `yaml:"downlinkEncoder"` }
EndDeviceCodecs is the format of the `vendor/<vendor>/<codec-id>.yaml` files.
type EndDeviceDecoderCodec ¶ added in v3.12.2
type EndDeviceDecoderCodec struct { FileName string `yaml:"fileName"` Examples []DecoderCodecExample `yaml:"examples"` }
type EndDeviceEncoderCodec ¶ added in v3.12.2
type EndDeviceEncoderCodec struct { FileName string `yaml:"fileName"` Examples []EncoderCodecExample `yaml:"examples"` }
type EndDeviceModel ¶
type EndDeviceModel struct { Name string `yaml:"name"` Description string `yaml:"description"` HardwareVersions []struct { Version string `yaml:"version"` Numeric uint32 `yaml:"numeric"` PartNumber string `yaml:"partNumber"` } `yaml:"hardwareVersions"` FirmwareVersions []struct { Version string `yaml:"version"` Numeric uint32 `yaml:"numeric"` HardwareVersions []string `yaml:"hardwareVersions"` Profiles map[string]struct { VendorID string `yaml:"vendorID"` ID string `yaml:"id"` Codec string `yaml:"codec"` LoRaWANCertified bool `yaml:"lorawanCertified"` } `yaml:"profiles"` } `yaml:"firmwareVersions"` Sensors []string `yaml:"sensors"` Dimensions *struct { Width float32 `yaml:"width"` Height float32 `yaml:"height"` Diameter float32 `yaml:"diameter"` Length float32 `yaml:"length"` } `yaml:"dimensions"` Weight float32 `yaml:"weight"` Battery *struct { Replaceable bool `yaml:"replaceable"` Type string `yaml:"type"` } `yaml:"battery"` OperatingConditions *struct { Temperature *struct { Min float32 `yaml:"min"` Max float32 `yaml:"max"` } `yaml:"temperature"` RelativeHumidity *struct { Min float32 `yaml:"min"` Max float32 `yaml:"max"` } `yaml:"relativeHumidity"` } `yaml:"operatingConditions"` IPCode string `yaml:"ipCode"` KeyProvisioning []ttnpb.KeyProvisioning `yaml:"keyProvisioning"` KeySecurity ttnpb.KeySecurity `yaml:"keySecurity"` Photos *struct { Main string `yaml:"main"` Other []string `yaml:"other"` } `yaml:"photos"` Videos *struct { Main string `yaml:"main"` Other []string `yaml:"other"` } `yaml:"videos"` ProductURL string `yaml:"productURL"` DataSheetURL string `yaml:"dataSheetURL"` ResellerURLs []struct { Name string `yaml:"name"` Region []string `yaml:"region"` URL string `yaml:"url"` } `yaml:"resellerURLs"` Compliances *struct { Safety []struct { Body string `yaml:"body"` Norm string `yaml:"norm"` Standard string `yaml:"standard"` Version string `yaml:"version"` } `yaml:"safety"` RadioEquipment []struct { Body string `yaml:"body"` Norm string `yaml:"norm"` Standard string `yaml:"standard"` Version string `yaml:"version"` } `yaml:"radioEquipment"` } `yaml:"compliances"` AdditionalRadios []string `yaml:"additionalRadios"` }
EndDeviceModel is the format of the `vendor/<vendor-id>/<model-id>.yaml` file.
func (EndDeviceModel) ToPB ¶
func (d EndDeviceModel) ToPB(brandID, modelID string, paths ...string) (*ttnpb.EndDeviceModel, error)
ToPB converts an EndDefinitionDefinition to a Protocol Buffer.
type Vendor ¶
type Vendor struct { ID string `yaml:"id"` Name string `yaml:"name"` VendorID uint32 `yaml:"vendorID"` Draft bool `yaml:"draft,omitempty"` Email string `yaml:"email"` Website string `yaml:"website"` PEN uint32 `yaml:"pen"` OUIs []string `yaml:"ouis"` Logo string `yaml:"logo"` }
Vendor is an end device vendor.
type VendorEndDevicesIndex ¶
type VendorEndDevicesIndex struct {
EndDevices []string `yaml:"endDevices"`
}
VendorEndDevicesIndex is the format of the `vendor/<vendor-id>/index.yaml` file.
type VendorsIndex ¶
type VendorsIndex struct {
Vendors []Vendor `yaml:"vendors"`
}
VendorsIndex is the format for the vendor/index.yaml file.
Click to show internal directories.
Click to hide internal directories.