1 diff --git a/src/controller/discoverymgr/wrapper/wrapper.go b/src/controller/discoverymgr/wrapper/wrapper.go
2 index 1317b40..6c3ffc3 100644
3 --- a/src/controller/discoverymgr/wrapper/wrapper.go
4 +++ b/src/controller/discoverymgr/wrapper/wrapper.go
5 @@ -41,7 +41,7 @@ type ZeroconfInterface interface {
9 -// Entity provides wapper entity info
10 +// Entity provides wrapper entity info
14 @@ -54,6 +54,7 @@ type OrchestrationInformation struct {
21 // ZeroconfImpl struct
22 @@ -92,7 +93,7 @@ func (zc *ZeroconfImpl) RegisterProxy(instance, service, domain string,
26 -// GetSubscriberChan subsrcibes serviceEntry info of other devices
27 +// GetSubscriberChan subscribers serviceEntry info of other devices
28 func (zc ZeroconfImpl) GetSubscriberChan() (chan *Entity, error) {
29 subchan, err := zeroconf.EdgeGetSubscriberChan()
31 @@ -165,13 +166,15 @@ func convertServiceEntrytoDB(data *zeroconf.ServiceEntry) (newDevice Orchestrati
33 //tmp error defense code
35 - if len(data.Text) < 2 {
36 + if len(data.Text) < 3 {
37 newDevice.ServiceList = data.Text
39 newDevice.Platform = data.Text[0]
40 newDevice.ExecutionType = data.Text[1]
41 - if len(data.Text) > 2 {
42 - newDevice.ServiceList = append(newDevice.ServiceList, data.Text[2:]...)
43 + newDevice.Capability = data.Text[2]
45 + if len(data.Text) > 3 {
46 + newDevice.ServiceList = append(newDevice.ServiceList, data.Text[3:]...)