Skip to content

Instantly share code, notes, and snippets.

@dan82840
Last active May 8, 2019 09:48
Show Gist options
  • Save dan82840/26842a1c79099e2c3d5a7193e6f7285f to your computer and use it in GitHub Desktop.
Save dan82840/26842a1c79099e2c3d5a7193e6f7285f to your computer and use it in GitHub Desktop.
#!/bin/sh
#
MAC=DB:52:25:C6:33:58
echo "Sync time !!!"
test-moti-client $MAC write 0x001f FD1004894AD15CFE
echo "Finish Data !!!"
test-moti-client $MAC write 0x001f FD400101FE
echo "Start Course !!!"
test-moti-client $MAC write 0x001f FD2009010144332211010001FE
echo "Start Fitness !!!"
test-moti-client $MAC write 0x001f FD3003010100FE
echo "Sleep 60s !!!"
sleep 60
echo "Stop Fitness !!!"
test-moti-client $MAC write 0x001f FD3003020100FE
echo "Stop Course !!!"
test-moti-client $MAC write 0x001f FD2009020144332211010001FE
echo "Setup MOTI Fitness data done !!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment