WebThingsIO / webthing-arduino

Simple server for ESP8266, ESP32, Ethernet, or WiFi101-compatible boards compliant with Mozilla's proposed WoT API
Mozilla Public License 2.0
207 stars 78 forks source link

Add type Thing #144

Closed Citrullin closed 3 years ago

Citrullin commented 3 years ago

Add

"@type": "Thing"
benfrancis commented 3 years ago

My understanding is that this isn't actually necessary as it's assumed by WoT TD consumers?

Citrullin commented 3 years ago

My understanding is that this isn't actually necessary as it's assumed by WoT TD consumers?

Well, yes, but apparently it makes some problems in some use-cases. And it doesn't really hurt. So, why not?

benfrancis commented 3 years ago

Well, yes, but apparently it makes some problems in some use-cases.

Can you be more specific?

And it doesn't really hurt. So, why not?

Unnecessary verbosity.

Citrullin commented 3 years ago

Well, yes, but apparently it makes some problems in some use-cases.

Can you be more specific?

And it doesn't really hurt. So, why not?

Unnecessary verbosity.

It was mentioned in one meeting. I don't remember anymore. Well, yes it is verbose. It's already a very verbose JSON in general. You can also question JSON for small devices in general. On the other hand the WoT TD doesn't get requested very often. You can cache it easily. Or use a discovery service which caches it. So, I don't see the verbose part as not such a big deal.