Hello all,
Again developing our differents drivers I have a question (again sorry).
Is is possible to access from a custom driver to a parameter put in the para address config ?
I think it is should be possible because of "low level comparison" in the modbus para panel.
How can I reproduce this in my custom Driver ?
Thanks a lot in advance.
Yann
Passing a parameter from address config to Driver
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Passing a parameter from address config to Driver
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Passing a parameter from address config to Driver
The information of the address config is passed to the driver by the 'PeriphAddr' pointer in 'HWMapper::addDpPa()'.
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: Passing a parameter from address config to Driver
Thank you Gertjan.
I found a trick to add parameters on param address :
- using a Regex comparison when driver is passing on HWMapper::addDpPa()' to find the address that contains parameters
- Extract the real address / full address
- Put them on a QMap for future mapping
It is a little bit ugly but it works....
Thank you
I found a trick to add parameters on param address :
- using a Regex comparison when driver is passing on HWMapper::addDpPa()' to find the address that contains parameters
- Extract the real address / full address
- Put them on a QMap for future mapping
It is a little bit ugly but it works....
Thank you