Skip to content

Instantly share code, notes, and snippets.

@amcjen
Last active August 29, 2015 14:01
Show Gist options
  • Save amcjen/b174c567cedb3ebefbcc to your computer and use it in GitHub Desktop.
Save amcjen/b174c567cedb3ebefbcc to your computer and use it in GitHub Desktop.
static bool receiveSpecialMessage(NWK_DataInd_t *ind);
Scout.meshListen(2, receiveSpecialMessage);
static bool receiveSpecialMessage(NWK_DataInd_t *ind) {
Serial.print(F("Received message of "));
Serial.print(data);
Serial.print(F(" from "));
Serial.print(ind->srcAddr, DEC);
Serial.print(F(" lqi "));
Serial.print(ind->lqi, DEC);
Serial.print(F(" rssi "));
Serial.println(abs(ind->rssi), DEC);
NWK_SetAckControl(1);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment