Argon Xenon Communication

Hello, I would like to know how to make the Argon communicate with the Xenon. The simplest thing I would like to is push a button (digitalRead()) on the Argon and then make an action happen (digitalWrite(led, HIGH) on a selected Xenon.

psudocode might look like this:

void setup() {

pinMode(A0, INPUT); #button press on Argon

}

void loop() {

if(digitalRead(A0) == 1) # on Argon
{
     Xenon1.RGB.control(true); #the next 4 lines happen on Xenon1
     Xenon1.RGB.color(255,255,2550);
     Xenon1.delay(1000);
     Xenon1.RGB.control(false);
    
}

}

I know that I can use the Argon as a gateway and put a button on a Xenon but that is not what I want to do.

I have googled and looked on in the docs but I can’t seem to find the way to do it. Is it not possible?

Thanks

You can use simple Mesh.Publish (On the Argon) and Mesh.Subscribe (On the Xenon) to do this. I am not sure if i understood your question, are you asking for a sample for this?

A sample or a good working example would be great. thanks

Here is some sample code you could use as a starting point :slight_smile:

Thanks, you got me pointed in the right direction.

1 Like

Happy to Help :slight_smile: