You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.6 KiB

  1. {
  2. "mac_address": "10:52:1c:51:0e:84",? The device knows this anyway
  3. "name": "Industrial",? This is managed at the server is it not?
  4. "pcb_version": "4.0",? Why does the firmware need to know this?
  5. "analogue_ports": 4,? Same as above, we will only push the correct number of sensor settings to the board.
  6. "digital_ports": 2,? ""
  7. "adc": "ADC128S022",? Won't the below adc settings take care of this?
  8. "adc_miso": 19,
  9. "adc_mosi": 23,
  10. "adc_clk": 18,
  11. "adc_cs": 5,
  12. "upload_interval": 15,
  13. "address": "mqtt.senseright.com.au",
  14. "port": 1884,
  15. "ota_path": null,
  16. "mqtt_secondary_address": "mqtt.senseright.com.au",
  17. "mqtt_secondary_port": 1884,
  18. "sensors": [ ! We need to sit down and define what settings and naming we are using for all our current sensors so this is fully defined.
  19. {
  20. "port_type": "Analogue", ! This will define how and what settings we look for below.
  21. "port": 1,
  22. "sensor_type": "0-5m pressure transducer", ! This should be a lot shorter as we will use this for control flow. For example "Pressure1", we would just keep a list of what key means what device.
  23. "sensor_address": null,
  24. "read_interval": 15,
  25. "communication_type": "4-20mA", ? Does this change how we should read the device
  26. "daughterboard": "4-20", ? ""
  27. "pcb_version": "1.0" ? ""
  28. },
  29. {
  30. "port_type": "Analogue",
  31. "port": 2,
  32. "sensor_type": "0-5m pressure transducer",
  33. "sensor_address": null,
  34. "read_interval": 15,
  35. "communication_type": "4-20mA",
  36. "daughterboard": "4-20",
  37. "pcb_version": "1.0"
  38. }
  39. ]
  40. }