这是indexloc提供的服务,不要输入任何密码
Skip to content

Residents Event API should support ioBroker.iot adapter like ioBroker.cloud adapter #17

@jpawlowski

Description

@jpawlowski

Today, the ioBroker.cloud adapter can be used to properly send POST HTTP requests in JSON format so ioBroker.residents can listen and react to it.

The tendency seems that functionality is being shifted from ioBroker.clouod to the ioBroker.iot adapter, so the ioBroker.residents adapter needs to be prepared for this.

However, the I/O concept of ioBroker.iot is broken as there is no clear separation between GET and POST requests, making it impossible to properly send data. For example, authentication information is always transferred as part of the GET HTTP header payload (like ?token=abc). For complex payload is better transferred using the HTTP body part and POST HTTP request. However, it is not standards compliant to transfer payload in the HTTP header and HTTP body at the same time.
ioBroker.iot currently requires doing this and even though it works in purely handcrafted applications, most frameworks are following the standards and do not allow such crappy mixup.

Unfortunately, there is nothing that can be done here before this gets fixed in the concept ofthe ioBroker.iot adapter. Until then, using the ioBroker.cloud adapter is the only option, even though its functionality might face some deprecation in the near futute.

Also see pending issue here: ioBroker/ioBroker.iot#535

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions