The overall UDMI project validation workflow generally looks like this:
- Login to the GCP account using
gcloud auth application-default login
- Setup a
site_model
in a git repo with appropriate configuration and metadata. - Run
registrar
with no specified project to validate metadata. - Use
keygen
as necessary to generate keys. - Run
registrar
tool again with a cloud project to actually register devices. - Do the needful to get data flowing from devices.
- Run
validator
to validate that the devices are producing the correct data.
It is strongly recommended to go through all of these steps with one or two test devices, rather than trying to take on an entire site without fully vetting the workflow and tools. The pubber tool can be used to mock out devices in lieu of physical devices, this is very useful for isolating problems between a cloud-configuration issue vs. a device configuration one.
An example site directory, as a reference, is available at udmi_site_model.