Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mk590901/measurements
Repository contains app simulator of healthcare measurement device written on 'toit' programming language can be run on ESP32 controller.
https://github.com/mk590901/measurements
grpc pubsub toit toit-language
Last synced: 11 days ago
JSON representation
Repository contains app simulator of healthcare measurement device written on 'toit' programming language can be run on ESP32 controller.
- Host: GitHub
- URL: https://github.com/mk590901/measurements
- Owner: mk590901
- Created: 2023-11-12T18:58:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-13T18:18:21.000Z (12 months ago)
- Last Synced: 2024-07-30T20:55:08.815Z (3 months ago)
- Topics: grpc, pubsub, toit, toit-language
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TOIT Measurements
## Introduction
The application is a simulator of four medical indicators: blood pressure (upper and lower), oxygen, temperature and heart rate.## Components
The main object of the application is an instance of the **TimersPool class**, which creates 5 virtual timers operating at a certain frequency. Each of these timers is responsible for the generated values: t1 - upper pressure, t2 - lower pressure, t3 - oxigen, t4 - temperature, t5 - heart rate. When the timeout is reached, the timer sends the corresponding value to the **cloud:demo/pong** topic, packing it into a json-string.The main function starts a task, which, when receiving an event via the **cloud:demo/ping^^ channel, creates a **TimersPool**, builds the five timers discussed above and makes it possible to generate and send data within 30 seconds. Then an event is sent to the client indicating the end of the measurement session.
This app must be installed on the **ESP32**. It's located in the measurements repository. The application is installed (*via deployment*) with the command **toit -d=nuc deploy measurements2.yaml** (on ESP32 *nuc*, you controller may have other names) and uninstalled with the command **toit device -d=nuc uninstall "Measurements"**.
## Using
It should also be noted that the TOIT app is a server and should be work with a client from the *https://github.com/mk590901/cloud_measurements* repository, written in dart in the flutter environment.