Added a button to flash the LED
This commit is contained in:
parent
50cf8e6f78
commit
653e1a4159
1 changed files with 12 additions and 0 deletions
|
|
@ -12,6 +12,13 @@
|
||||||
<br />
|
<br />
|
||||||
{{ $store.state.origin }}
|
{{ $store.state.origin }}
|
||||||
</div>
|
</div>
|
||||||
|
<task-submitter
|
||||||
|
v-if="flashLedUri"
|
||||||
|
:submit-url="flashLedUri"
|
||||||
|
submit-label="Flash Illumination"
|
||||||
|
:can-terminate="false"
|
||||||
|
:submit-data="{'dt': 0.25}"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
@ -76,13 +83,18 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import taskSubmitter from '../../genericComponents/taskSubmitter.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { taskSubmitter },
|
||||||
name: "StatusPane",
|
name: "StatusPane",
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
things: function() {
|
things: function() {
|
||||||
return this.$store.getters["wot/thingDescriptions"];
|
return this.$store.getters["wot/thingDescriptions"];
|
||||||
|
},
|
||||||
|
flashLedUri() {
|
||||||
|
return this.thingActionUrl("stage", "flash_led");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue