ComNets-Bremen / WUSN

MoleNet: A Wireless Underground Sensor Network platform
https://www.molenet.org
GNU General Public License v3.0
2 stars 5 forks source link

Improvement of success code: always 1, convert success code to int #6

Open jdede opened 3 years ago

jdede commented 3 years ago

The received success code is always 1 but should be different in case of a successful transmission, c.f. https://github.com/ComNets-Bremen/WUSN/blob/66d6b345920135b9d19f20454e2d9cff508c35cf/sources/MoleNet_1.0/MoleNet_node/MoleNet_node.ino#L143

//suc == '0' : crc-check and transmission failed
//suc == '1' : crc-check successful, but transmission failed
//suc == '2' : crc-check failed, transmission successful
//suc == '3' : crc-check and transmission successful

furthermore, the success code is handles as a char, not as an int.