Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explaining empty payloads in each binding #184

Open
egekorkan opened this issue Sep 26, 2022 · 0 comments
Open

Explaining empty payloads in each binding #184

egekorkan opened this issue Sep 26, 2022 · 0 comments
Labels
core related to the core specification document

Comments

@egekorkan
Copy link
Contributor

Coming partly from w3c/wot-scripting-api#430 and the Scripting API call on 26.09.22:

Currently, the TD spec describes empty payloads of a protocol by not describing it. For example, for a POST request with no payload or an event that does not need any payload (like buttonPressed). However, this empty payload can be done in different ways in different protocols. In HTTP, it is empty body, in MQTT it is empty payload in publish but a subscribe MUST contain a payload apparently (http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718066, just learned it). I am guessing that it can be an empty payload in the end but it still needs encoding.

In any case, I think that we should add explaining this empty payload behavior for all bindings.

@egekorkan egekorkan added the core related to the core specification document label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core related to the core specification document
Projects
None yet
Development

No branches or pull requests

1 participant