@@ -36,6 +36,7 @@ const (
3636)
3737
3838const TOS_SERIAL_DEVICE_PARAMETERS_ID = 0x80
39+ const AMID_DEVICE_PARAMETERS = 0x82
3940
4041type DeviceParameterManager struct {
4142 loggers.DIWEloggers
@@ -98,7 +99,7 @@ func NewDeviceParameterActiveMessageManager(sfc *sfconnection.SfConnection, grou
9899 dpm .destination = destination
99100
100101 dsp := sfconnection .NewMessageDispatcher (sfconnection .NewMessage (group , address ))
101- dsp .RegisterMessageReceiver (0x80 , dpm .receive )
102+ dsp .RegisterMessageReceiver (AMID_DEVICE_PARAMETERS , dpm .receive )
102103 dpm .dsp = dsp
103104
104105 dpm .sfc = sfc
@@ -127,7 +128,7 @@ func (self *DeviceParameterManager) GetValue(name string) (*DeviceParameter, err
127128 msg := self .dsp .NewPacket ()
128129 if self .destination != 0 {
129130 msg .(* sfconnection.Message ).SetDestination (self .destination )
130- msg .(* sfconnection.Message ).SetType (0x80 )
131+ msg .(* sfconnection.Message ).SetType (AMID_DEVICE_PARAMETERS )
131132 }
132133 payload := new (DpGetParameterId )
133134 payload .Header = DP_GET_PARAMETER_WITH_ID
@@ -163,7 +164,7 @@ func (self *DeviceParameterManager) SetValue(name string, value []byte) (*Device
163164 msg := self .dsp .NewPacket ()
164165 if self .destination != 0 {
165166 msg .(* sfconnection.Message ).SetDestination (self .destination )
166- msg .(* sfconnection.Message ).SetType (0x80 )
167+ msg .(* sfconnection.Message ).SetType (AMID_DEVICE_PARAMETERS )
167168 }
168169 payload := new (DpSetParameterId )
169170 payload .Header = DP_SET_PARAMETER_WITH_ID
@@ -310,7 +311,7 @@ func (self *DeviceParameterManager) getList(delivery chan *DeviceParameter) {
310311 msg := self .dsp .NewPacket ()
311312 if self .destination != 0 {
312313 msg .(* sfconnection.Message ).SetDestination (self .destination )
313- msg .(* sfconnection.Message ).SetType (0x80 )
314+ msg .(* sfconnection.Message ).SetType (AMID_DEVICE_PARAMETERS )
314315 }
315316 payload := new (DpGetParameterSeqnum )
316317 payload .Header = DP_GET_PARAMETER_WITH_SEQNUM
0 commit comments