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