You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the Address and Port are not used in the driver. We only need to define the ProtocolProperties driver needs to connect to the real device, for example:
The default device service behavior is to read from the mock data file. This needs to be changed. Edit line 91 in driver/gpsdevice.go, changing gps_output_test.txt to /dev/ttyUSB0.
However, it is not in line 91 anymore, and it is in line 62. Thus, we had better avoid hard code the path.
Currently in configuration.toml, the protocol properties are defined as follows:
https://github.com/edgexfoundry-holding/device-gps/blob/master/cmd/res/configuration.toml#L64-L67
However, the Address and Port are not used in the driver. We only need to define the ProtocolProperties driver needs to connect to the real device, for example:
In this case, the hard code path of GPS Device could be moved into the ProtocolProperties.
The text was updated successfully, but these errors were encountered: