| 12345678910111213141516171819202122 |
- @echo off
- REM Register hardware devices in the spectrometer database (run once after first start)
- curl -s -X POST -H "Content-Type: application/json" ^
- -d "{\"device_type\": \"ADC\", \"brend\": \"Picoscope\", \"serial_model\": \"PS4000A\", \"proto\": \"adc_default\", \"proto_interface\": \"TCP\"}" ^
- http://localhost:8000/api/devices/
- curl -s -X POST -H "Content-Type: application/json" ^
- -d "{\"device_type\": \"SDR\", \"brend\": \"HackRF\", \"serial_model\": \"HackRF\", \"proto\": \"sdr_default\", \"proto_interface\": \"USB\"}" ^
- http://localhost:8000/api/devices/
- curl -s -X POST -H "Content-Type: application/json" ^
- -d "{\"device_type\": \"SYNC\", \"brend\": \"Arduino\", \"serial_model\": \"DuePP\", \"proto\": \"sync_default\", \"proto_interface\": \"USB\"}" ^
- http://localhost:8000/api/devices/
- curl -s -X POST -H "Content-Type: application/json" ^
- -d "{\"device_type\": \"GRA\", \"brend\": \"ITMO\", \"serial_model\": \"GRU\", \"proto\": \"gra_default\", \"proto_interface\": \"UDP\"}" ^
- http://localhost:8000/api/devices/
- echo.
- echo Devices registered.
- pause
|