Modify the Configuration of Device Integration
1. Edit the
Before integrating the device, you need to edit the
protocolSettings can be further configured according to different protocols, please go to Shifu API Reference for detailed configuration.
connection: Indicates the network connection method of the device.
address: Indicates the network address of the device.
protocol: indicates the communication protocol to interact with the device.
protocolSettings: indicates the next settings for the protocol, for different protocols you need to introduce [different
2. Create deviceshifu
After modifying the above files, you can create deviceshifu, which will try to connect to your device with the configuration you have set.
3. Detecting Device Access Status
If you find an
CrashLoopBackOff in deviceshifu status through the command
kubectl get pods -n deviceshifu, it means that the connection is abnormal.
You can also print error messages with the command
kubectl logs <NAME> -n deviceshifu.
Configure to Access an OPC UA Device
With the above configuration, set
address to the address of your OPC UA device,
OPCUASetting, and configure
AuthenticationMode, and account password.
After modifying the configuration above, you can now create a deviceshifu to access the OPC UA device.