You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// default for htv:methodName depending on op, see https://w3c.github.io/wot-binding-templates/bindings/protocols/http/index.html#http-default-vocabulary-terms
1106
+
consthtvKey="htv:methodName";
1107
+
if(form[htvKey]==null){
1108
+
if(
1109
+
this.hasOp(form,"readproperty")||
1110
+
this.hasOp(form,"readallproperties")||
1111
+
this.hasOp(form,"readmultipleproperties")
1112
+
){
1113
+
form[htvKey]="GET";
1114
+
}elseif(
1115
+
this.hasOp(form,"writeproperty")||
1116
+
this.hasOp(form,"writeallproperties")||
1117
+
this.hasOp(form,"writemultipleproperties")
1118
+
){
1119
+
form[htvKey]="PUT";
1120
+
}elseif(this.hasOp(form,"invokeaction")){
1121
+
form[htvKey]="POST";
1122
+
}
1123
+
}
1124
+
}elseif(protocol.startsWith("modbus")){
1125
+
// Modbus: href, modbus_function
1126
+
// default for modbus:function depending on op, see https://w3c.github.io/wot-binding-templates/bindings/protocols/modbus/index.html#default-mappings
0 commit comments