Commit 0b820421 authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Possibilities to write configuration. To discuss...

parent 0689c530
......@@ -6,14 +6,9 @@ global {
;add here other global attributes for your plugin
}
group iogroup1 {
nodenameList i[0-9]c[4-24]r[1,6,17],i2c3r[8,10-12]
group template_a1 {
interval 1000
minValues 10
;how do we calculate it from nodenameList?
mqttPrefix 01
sensor IOBYTESREAD {
mqttsuffix 00
}
......@@ -27,15 +22,34 @@ group iogroup1 {
}
}
;single sensor
group iogroup2 {
group possibility1 {
nodenameList i[0-9]c[4-24]r[1,6,17],i2c3r[8,10-12],...
macaddresse [120-600],[607,789],...
default a1
}
nodenameList i2c3r9
interval 10000
minValues 10
sensor IOOPENS {
mqttsuffix 03
group possibility2 {
nodetomac {
nodename i0c0a1
macaddress 123
}
nodetomac {
nodename i0c0a2
macaddress 123
}
nodetomac {
nodename i0c1a2
macaddress 525
}
...
default a1
}
group possibility3 {
;contains nodename => macaddresse
nodefile file.txt
default a1
}
......@@ -766,7 +766,7 @@ protected:
* @param compressedList String which specifies a range of node names (e.g. "a[2-4]b[1-3]c[4-7]")
* @return true if parsed successfully, false otherwise
*/
bool tokenizeCompressedHostList(const std::string& compressedList, std::set<std::string>& nodeNames){
bool parseCompressedNodeList(const std::string& compressedList, std::set<std::string>& nodeNames){
int count = 0;
std::string token;
std::stringstream iss(compressedList);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment