SunitRaut / WSN-for-RFM69-LowPowerLab

This is a library for developing Wireless Sensor Network using RFM69 LowPowerLab Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow sink node from using the sendToSink() method.

SunitRaut opened this issue · comments

A sink node using sendToSink() will fetch no results and might lead to unexpected behaviour. Although, it is not logical for the user to send to sink from the sink node itself, this could lead to unexpected behaviour if user uses it by mistake.

Thus, some protection should be provided against this.

Changes made to WSN_RFM69.cpp: 41e4a91: Added if(sink) return; to sendToSink()

Pending push to tag / release

Pushed to tag 1.0.1 and released