configuration

Description configuration

GET

http://localhost:5000/config

POST

http://localhost:5000/config

Response

Example - GET

curl http://localhost:5000/config

 {
  "AUDIO": {
    "enable_auto_tune": false,
    "input_device": "8eb1",
    "output_device": "8eb1",
    "rx_audio_level": 0,
    "tx_audio_level": 0
  },
  "MESH": {
    "enable_protocol": false
  },
  "MODEM": {
    "beacon_interval": 1800,
    "enable_fsk": false,
    "enable_hmac": false,
    "enable_low_bandwidth_mode": true,
    "enable_morse_identifier": false,
    "respond_to_cq": true,
    "rx_buffer_size": 64,
    "tuning_range_fmax": 50,
    "tuning_range_fmin": -50,
    "tx_delay": 200
  },
  "NETWORK": {
    "modemport": 3050
  },
  "RADIO": {
    "control": "disabled",
    "data_bits": 8,
    "model_id": 1001,
    "ptt_port": "ignore",
    "ptt_type": "USB",
    "serial_dcd": "NONE",
    "serial_dtr": "OFF",
    "serial_handshake": "ignore",
    "serial_port": "/dev/cu.Bluetooth-Incoming-Port",
    "serial_speed": 38400,
    "stop_bits": 1
  },
  "RIGCTLD": {
    "arguments": "--cenas",
    "command": "",
    "ip": "127.0.0.1",
    "path": "",
    "port": 4532
  },
  "STATION": {
    "enable_explorer": true,
    "enable_stats": true,
    "mycall": "N0CALL",
    "mygrid": "JP20ql",
    "myssid": 6,
    "ssid_list": [
      1,
      7
    ]
  },
  "TCI": {
    "tci_ip": "127.0.0.1",
    "tci_port": 50001
  }
}

Example - POST

curl -X POST -H "Content-Type: application/json" -d '{"AUDIO":{"enable_auto_tune":false,"input_device":"8eb1","output_device":"8eb1","rx_audio_level":0,"tx_audio_level":0},"MESH":{"enable_protocol":false},"MODEM":{"beacon_interval":1800,"enable_fsk":false,"enable_hmac":false,"enable_low_bandwidth_mode":true,"enable_morse_identifier":false,"respond_to_cq":true,"rx_buffer_size":64,"tuning_range_fmax":50,"tuning_range_fmin":-50,"tx_delay":200},"NETWORK":{"modemport":3050},"RADIO":{"control":"disabled","data_bits":8,"model_id":1001,"ptt_port":"ignore","ptt_type":"USB","serial_dcd":"NONE","serial_dtr":"OFF","serial_handshake":"ignore","serial_port":"/dev/cu.Bluetooth-Incoming-Port","serial_speed":38400,"stop_bits":1},"RIGCTLD":{"arguments":"--cenas","command":"","ip":"127.0.0.1","path":"","port":4532},"STATION":{"enable_explorer":true,"enable_stats":true,"mycall":"N0CALL","mygrid":"JP20ql","myssid":6,"ssid_list":[1,7]},"TCI":{"tci_ip":"127.0.0.1","tci_port":50001}}' http://localhost:5000/config/

Errors

This API uses the following error codes:

  • 400 Bad Request: The request was malformed or missing required parameters.
  • 404 Not Found: The requested resource was not found.
  • 500 Internal Server Error: An unexpected error occurred on the server.