Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAsModbus ¶
ValidateAsModbus validates a file against modbus protocol binding json schema, but only if it determines that the file purports to describe a modbus device. Returns a flag indicating whether validate has been attempted and an error if it was not successful
func ValidateAsTM ¶
func ValidateAsTmcImportable ¶
func ValidateAsTmcImportable(raw []byte, parsed any) (*model.ThingModel, error)
func ValidateThingModel ¶
func ValidateThingModel(raw []byte) (*model.ThingModel, error)
ValidateThingModel validates the presence of the mandatory fields in the TM to be imported. Returns parsed *model.ThingModel, where the author name, manufacturer name, and mpn have been sanitized for use in filenames
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.