Comments (5)
@crea7or, for better understanding of your idea do you have any proposal?
from automotive.
@crea7or - are you looking for something like below, a possibility to use "post" on branch level and instead of just giving a value give a path/value array as argument. so that you e.g. could set both PerformanceMode and GearChangeMode in the same request
POST /Vehicle/Drivetrain/Transmission HTTP/1.1
Host:127.0.0.1:1337
Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSm9obiBEb2UifQ.xuEv8qrfXu424LZk8bVgr9MQJUIrp1rHcPyZw_KSsds
{
// Path relatives to /Vehicle/Drivetrain/Transmission (or full?)
“data”:[{“path”:”PerformanceMode”, "value": "sport"},{“path”:”GearChangeMode”, "value": "manual"}]
}
from automotive.
@erikbosch yep, but prefer full paths like this, because in theory signals from the one frame can be in the different roots:
{
"action": "set?",
"data": [
{
"path": "Vehicle/Drivetrain/Transmission/PerformanceMode",
"value": "sport"
},
{
"path": "Vehicle/Drivetrain/Transmission/GearChangeMode",
"value": "manual"
}
],
"requestId": "5687"
}
from automotive.
If one set command will be in priority, one value set can be just an object instead of an array of the objects:
{
"action": "set",
"data":
{
"path": "Vehicle/Drivetrain/Transmission/PerformanceMode",
"value": "sport"
},
"requestId": "5687"
}
from automotive.
Another idea is to specify root node(branch) like this:
{
"action": "set",
"data": [
{
"path": "PerformanceMode",
"value": "sport"
},
{
"path": "Gear",
"value": "2"
}
],
"requestId": "5687",
"root": "Vehicle/Drivetrain/Transmission"
}
This syntax will help us to subscribe to the branches to work with them as with composite types.
from automotive.
Related Issues (20)
- Inverse range filtering? HOT 3
- VISS 2 wide review tracking
- Refer to RFC 3987 or URL HOT 2
- Candidate Recommendation endorsement
- Change of key name "value" to "param" HOT 3
- Potential support of structs in VSS HOT 3
- documentation: subscription timestamp HOT 4
- Subscription handling on error or JWT auth issues (timed out) HOT 4
- More architectural description HOT 1
- Add in-line privacy and security considerations to VISS transport HOT 2
- VISS core: what is a pseudo-VIN HOT 3
- VISS Core: why is access control non-normative? HOT 3
- VISS Core: "certified" applications? HOT 2
- Rename notification to event HOT 2
- VISS Core&transport - unclear MAY with enumeration HOT 2
- Proposal to add a “consent hook” HOT 3
- error handling for malformed messages HOT 8
- Bandwidth optimization by using token handle HOT 6
- JSON schema is invalid HOT 4
- Normative references HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automotive.