Documentation
¶
Index ¶
- func CancelOta(otaid string, cred *config.Credentials) error
- func Encode(params *EncodeParams) (*string, error)
- func Generate(binFile string, outFile string, fqbn string) error
- func PrintOtaStatus(otaid, otaids, device string, cred *config.Credentials, limit int, ...) error
- func ReadHeader(params *ReadHeaderParams) error
- func Upload(ctx context.Context, params *UploadParams, cred *config.Credentials) error
- type EncodeParams
- type MassUploadParams
- type ReadHeaderParams
- type Result
- type UploadParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
func Encode(params *EncodeParams) (*string, error)
Encode command is used to encode a firmware OTA
func PrintOtaStatus ¶
func ReadHeader ¶
func ReadHeader(params *ReadHeaderParams) error
Encode command is used to encode a firmware OTA
func Upload ¶
func Upload(ctx context.Context, params *UploadParams, cred *config.Credentials) error
Upload command is used to upload a firmware OTA, on a device of Arduino IoT Cloud.
Types ¶
type EncodeParams ¶
type MassUploadParams ¶
type MassUploadParams struct { DeviceIDs []string Tags map[string]string File string Deferred bool DoNotApplyHeader bool FQBN string }
MassUploadParams contains the parameters needed to perform a Mass OTA upload.
type ReadHeaderParams ¶
type ReadHeaderParams struct {
File string
}
type Result ¶
Result of an ota upload on a device.
func MassUpload ¶
func MassUpload(ctx context.Context, params *MassUploadParams, cred *config.Credentials) ([]Result, error)
MassUpload command is used to mass upload a firmware OTA, on devices of Arduino IoT Cloud.
Click to show internal directories.
Click to hide internal directories.