Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Y
yaq enhancement proposals
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaq
yaq enhancement proposals
Commits
6833588f
Commit
6833588f
authored
Jul 14, 2020
by
Kyle Sunden
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '302' into 'master'
YEP-302: is-sensor See merge request
!39
parents
733af1c5
ae432763
Pipeline
#166579743
canceled with stage
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
1 deletion
+58
-1
yeps/yep-302.md
yeps/yep-302.md
+58
-1
No files found.
yeps/yep-302.md
View file @
6833588f
...
...
@@ -5,6 +5,63 @@ author: Blaise Thompson
status
:
draft
tags
:
trait
post-history
:
2020-04-22
2020-07-14
---
This YEP is a stub.
# Abstract
This YEP defines the is-sensor trait.
Daemons implementing this trait make measurements.
# Table of Contents
[TOC]
# Motivation
Sensors are a core component of the instrumentation ecosystem.
The is-sensor trait enforces a consistent interface across all measurement devices.
# Proposal
## message: measure
response: int
Initiate a measurement. Returns integer, measurement ID.
## message: get_measured
response: {type: map, values: [float, ndarray]}
Get most recent measured value. Additional key of measurement ID.
## message: stop_looping
Stop looping measurement.
## message: get_channel_names
response: {'type': 'array', 'items': 'string'}
Get map of channel names.
## message: get_channel_shapes
response: {'type': 'map', 'values': {'type': 'array', 'items': 'int'}}
Get map of current channel shapes. Scalar represented by empty list.
## message: get_channel_units
response: {'type': 'map', 'values': ['null', 'string']}
Get current channel units.
# Discussion
Discussion can be found on the
[
gitlab issue
](
https://gitlab.com/yaq/yeps/-/issues/15
)
for this YEP.
# Copyright
This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment