<?xml version="1.0" encoding="utf-8"?>
<!--
  DUAL WEIGHBRIDGE EXAMPLE (one PC, two indicators on two COM ports).
  Your existing App.config keeps working unchanged for ONE weighbridge. For two, keep everything you already have and
  ADD the Weighbridge1.* and Weighbridge2.* keys below (up to four weighbridges: Weighbridge3.*, Weighbridge4.*).
  When Weighbridge1.DeviceId is present, the classic DeviceId / DeviceKey / ComPort keys are no longer used for the weighbridges.
-->
<configuration>
  <appSettings>
    <!-- Weighbridge 1 -->
    <add key="Weighbridge1.DeviceId" value="ISV-01" />
    <add key="Weighbridge1.DeviceKey" value="PASTE-THE-KEY-OF-WEIGHBRIDGE-1" />
    <add key="Weighbridge1.ComPort" value="COM12" />
    <add key="Weighbridge1.BaudRate" value="9600" />      <!-- optional: default is BaudRate below -->

    <!-- Weighbridge 2 (create it first under Companies & Sites; the key is shown once) -->
    <add key="Weighbridge2.DeviceId" value="ISV-02" />
    <add key="Weighbridge2.DeviceKey" value="PASTE-THE-KEY-OF-WEIGHBRIDGE-2" />
    <add key="Weighbridge2.ComPort" value="COM13" />
    <add key="Weighbridge2.BaudRate" value="9600" />

    <!-- Shared settings (as in your current App.config) -->
    <add key="BaudRate" value="9600" />
    <add key="ComPort" value="COM12" />
    <add key="DeviceId" value="ISV-01" />
    <add key="DeviceKey" value="not-used-when-Weighbridge1-keys-are-present" />
    <add key="CloudEndpoint" value="https://wbcorp.isv.com.sg/webapp/public/api/live_weight_post.php" />
    <add key="CloudBaseUrl" value="https://wbcorp.isv.com.sg/webapp/public" />
    <add key="PostIntervalMs" value="500" />
    <add key="StaleDataTimeoutMs" value="3000" />
    <add key="PortReopenAfterSilenceMs" value="15000" />
    <add key="LocalHttpPort" value="8090" />
    <add key="CameraCaptureEnabled" value="true" />
    <add key="FfmpegPath" value="C:\ffmpeg\bin\ffmpeg.exe" />
    <add key="CameraPollIntervalMs" value="2000" />
  </appSettings>
</configuration>
