選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

17 行
452 B

  1. #!/bin/bash
  2. SERVER_URL="http://localhost:1902"
  3. curl -X POST "${SERVER_URL}/configs/beacons" \
  4. -H "Content-Type: application/json" \
  5. -d '{
  6. "name": "Eddystone",
  7. "min": 4,
  8. "max": 255,
  9. "pattern": ["0x16", "0xAA", "0xFE", "0x20"],
  10. "configs": {
  11. "battery": {"offset": 6, "length": 2, "order": "bigendian"},
  12. "temperature": {"offset": 8, "length": 2, "order": "fixedpoint"}
  13. }
  14. }'