Skip to content
Snippets Groups Projects
Commit ed403e48 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

added additional information on parameters

parent b8329e16
Branches
Tags
3 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI,!342Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline #108243 failed
...@@ -70,6 +70,8 @@ func (d *DeviceWatcher) callSubscribe(pndID string, device device.Device, opts * ...@@ -70,6 +70,8 @@ func (d *DeviceWatcher) callSubscribe(pndID string, device device.Device, opts *
} }
} }
// handleSubscribeResponse takes the subscribe response and additional information about the device to distinguish
// from which device a subscribe response was sent including improved error handling
func handleSubscribeResponse(resp *gpb.SubscribeResponse, pndID, deviceID, deviceName string) { func handleSubscribeResponse(resp *gpb.SubscribeResponse, pndID, deviceID, deviceName string) {
switch resp := resp.Response.(type) { switch resp := resp.Response.(type) {
case *gpb.SubscribeResponse_Error: case *gpb.SubscribeResponse_Error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment