RUI3 - Relay - clase C

Hi BeeGee,

I’m trying out a relay firmware for RUI3. The code loads correctly and receives the data but it doesn’t do what I want when I send it a download link from chirpstack V4

image

I’ve already tried to convert to base64 for chirpstack V4 and it doesn’t work. I used another test code and the relay turns off and on every 5 seconds without any problem


void setup() {
  pinMode(WB_IO2, OUTPUT);
  digitalWrite(WB_IO2, HIGH);
  pinMode(WB_IO4, OUTPUT);
  // Initialize serial for output.
  Serial.begin(115200);
}

void loop() {
  digitalWrite(WB_IO4, LOW);
  delay(5000);
  digitalWrite(WB_IO4, HIGH);
  delay(5000);
}

Can you tell me if the download link is correct or if I’m missing something that I’m not seeing?

Downlink packet has the format 0xAA 0x55 0x01 to switch on the relay.
But you are sending 0xAA 0xFF 0x01, that’s why it says “Wrong format”

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.