Skip to content

stevebriskin/microtemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature Reading Client

Description

Viam MicroRDK on an ESP32 with a TMP36 analog sensor. Read sensor and push readings to app.viam.com.

Configs

Sample app.viam.com machine config:

{
  "services": [],
  "components": [
    {
      "type": "board",
      "model": "esp32",
      "attributes": {
        "pins": [12],
        "analogs": [
          {
            "pin": 35,
            "name": "temp"
          }
        ]
      },
      "depends_on": [],
      "name": "board"
    }
  ],
}

Sample client script config:

{
	"machines" : [
		{
			"part_id": "3910b942-....",
			"part_uri" : "ABC.XYZ.viam.cloud",
			"mach_api_name" : "0570a....",
			"mach_api_key" : "topsecret"
		}
	],
	"app_api_name" : "9600...",
	"app_api_key" : "topsecret",
  "sleep_time" : 180,
  "num_sensor_readings" : 10
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages