Skip to content

Commit

Permalink
Server-demo-v2: add preference for multi-value content format.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed May 12, 2021
1 parent 0c598cd commit b9c07df
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions leshan-server-demo/webapp2/src/components/ClientSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@
<v-select
single-line
dense
prefix="Format :"
prefix="Single Value :"
hide-details
:items="singleFormatList"
v-model="singleformat"
></v-select>
</div>
<!-- TODO uncomment when we will support multi node write or read -->
<!--v-select
single-line
dense
hide-details
prefix="Multi :"
:items="multiFormatList"
v-model="multiformat"
></v-select-->
<div title="Content Format used to send request handling multiple values">
<v-select
single-line
dense
hide-details
prefix="Multi Value :"
:items="multiFormatList"
v-model="multiformat"
></v-select>
</div>
</div>
</template>
<script>
Expand All @@ -57,15 +58,13 @@ export default {
"SENML_CBOR",
"JSON",
],
// TODO uncomment when we will support multi node write or read
//multiFormatList: ["TLV", "SENML_JSON", "SENML_CBOR", "JSON"],
multiFormatList: ["TLV", "SENML_JSON", "SENML_CBOR", "JSON"],
};
},
computed: {
timeout: preference("timeout", { defaultValue: 5 }),
singleformat: preference("singleformat", { defaultValue: "TLV" }),
// TODO uncomment when we will support multi node write or read
//multiformat: preference("multiformat", { defaultValue: "TLV" }),
multiformat: preference("multiformat", { defaultValue: "TLV" }),
},
methods: {
openTimeoutHelps() {
Expand Down

0 comments on commit b9c07df

Please sign in to comment.