Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ services:
cap_add:
- SYS_PTRACE # Set kernel.yama.ptrace_scope = 0 in /etc/sysctl.d/10-ptrace.conf
hostname: fpsdk-trixie-dev-${USER}
ports:
- "8952:8952/udp" # for findsensor
# Apparently required... (so that the container doesn't kill itself?)
command: tail -f

Expand Down
9 changes: 8 additions & 1 deletion fpsdk.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,14 @@
},
"workbench.remoteIndicator.showExtensionRecommendations": true,
"yaml.extension.recommendations": false,
"peacock.remoteColor": "#f9e64f"
"peacock.remoteColor": "#f9e64f",
"workbench.colorCustomizations": {
"commandCenter.border": "#15202b99",
"titleBar.activeBackground": "#f9e64f",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#f9e64f99",
"titleBar.inactiveForeground": "#15202b99"
}
},
"extensions": {
"recommendations": [
Expand Down
20 changes: 19 additions & 1 deletion fpsdk_apps/findsensor/findsensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,32 @@ class FindSensorOptions : public ProgramOptions
" - Address 192.168.43.156/24\n"
" - Interface wlan1\n"
" - Address 10.0.1.1/24\n"
" Found 1 sensor\n"
" Found fp-fe771e (VRTK2_STK_P)\n"
" - Interface eth0\n"
" - Address 172.22.1.17/20\n"
" - Interface wlan1\n"
" - Address 10.0.1.1/24\n"
" Found xf-a0d2d8 (EAGLE_PBXA1)\n"
" - Interface eth0\n"
" - Address 172.22.1.18/20\n"
" - Interface usb0\n"
" - Address 10.0.3.1/24\n"
" Found 3 sensors\n"
"\n"
" Quietly look for a particular sensor and print the information as JSON:\n"
"\n"
" $ findsensor --quiet --uid xf-a0d2d8 --json\n"
"\n"
" {\"ifs\":{\"eth0\":[\"172.22.1.60/20\"],\"wlan0\":[\"192.168.43.156/24\"],\"wlan1\":[\"10.0.1.1/24\"]},\\\n"
" \"props\":{\"product_model\":\"VRTK2_STK\"},\"uid\":\"fp-6d9d2c\"}\n"
" ...\n"
"\n"
" Find all \"fp\" sensors and print their UID and first eth0 address:\n"
"\n"
" $ findsensor --quiet --json | jq -r 'select(.uid|startswith(\"xf-\")) | .uid + " " + .ifs.eth0[0]'\n"
"\n"
" fp-6d9d2c 172.22.1.60/20\n"
" fp-fe771e 172.22.1.17/20\n"
"\n"
"\n", stdout);
// clang-format on
Expand Down
Loading