Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

arduino wireless communication

void loop()
{
  // Create a 32 byte char buffer
  uint8_t receive_buffer[32];
  uint8_t buflen = sizeof(receive_buffer);
 
  // If data is available, print it
  if (radio.recv(receive_buffer, &buflen))
  {
    Serial.print("Message: ");
    Serial.println((char*)receive_buffer);         
  }
}
Source by www.digikey.com #
 
PREVIOUS NEXT
Tagged: #arduino #wireless #communication
ADD COMMENT
Topic
Name
6+9 =