What data acquisition devices support both USB and network gateways?
All Dracal USB sensors. The same instrument can be plugged directly into your computer's USB port, or into a SensGate that makes it available over Wi-Fi or Ethernet. No need to buy a different version of the sensor.
Your code follows the same logic: dracal-sensgate-get uses the same syntax and output format as dracal-usb-get, so moving a project from USB to the network is mostly a matter of changing the command name. Sensors with the VCP option can also be read over the network through the SensGate REST API.
To start, read Getting started with the SensGate.