File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
step-7-webserver/pico-w5500 Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1515 - run : make -C step-5-cmsis
1616 - run : make -C step-6-clock
1717 - run : make -C step-7-webserver/nucleo-f429zi
18- - run : make -C step-7-webserver/pico-w5500
18+ - run : make -C step-7-webserver/pico-w5500 test VCON_API_KEY=${{secrets.VCON_API_KEY}}
1919 macos :
2020 runs-on : macos-latest
2121 steps :
Original file line number Diff line number Diff line change @@ -29,5 +29,13 @@ firmware.bin: firmware.elf
2929firmware.uf2 : firmware.bin $(BIN2UF2 )
3030 $(BIN2UF2 ) $< $@
3131
32+ # Requires env variable VCON_API_KEY set
33+ DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/1
34+ test : build
35+ curl -su :$(VCON_API_KEY ) $(DEVICE_URL ) | tee /tmp/a
36+ curl --fail -su :$(VCON_API_KEY ) $(DEVICE_URL ) /ota? uf2=1 --data-binary @firmware.uf2
37+ curl --fail -su :$(VCON_API_KEY ) $(DEVICE_URL ) /tx? t=5 | tee /tmp/output.txt
38+ grep ' Ethernet: ' /tmp/output.txt
39+
3240clean :
3341 $(RM ) firmware.* bin2uf2
You can’t perform that action at this time.
0 commit comments