With Arduino SLIDER do not work

Hello everyone
Congratulations to the Cayenne teams. The price of success! requires you to be present on the forum 7days / 7 and 24 hours / 24 !!!
Since the migration MQTT I have some difficulties with the sliders (brightness) (servomotor) and (movement) that do not work.
The procedure is followed in the same way as for the sensor and actuators
Thermistor, photoresistor, light switch, which work very well (on pc and android).
I use arduino uno and arduino mega.
I did some research on topics and previous posts without finding my happiness.
If you have an answer, I would be very happy.
thank you very much

can you post the code and error you are getting.

Hi!
here is screenshot and code used

Thank you for your interest
Robert

"#define virtual channel undefined " in your code, change it 1 or which ever channel you are using.

I sent you the basic code. virtual channel is well informed

change slider maximum to 180.

I already try to do this by reading some of your answers.
I have just done it again. Fortunately, you are patient!

I also tried to install a single slider widget without result.
it appears on the board but without icon

can you do one thing. add a new device using BYOT and add the MQTT credential into below code.
add a custom slider with channel 1 .

// This example shows how to connect to Cayenne using an Ethernet W5100 shield and send/receive sample data.

//#define CAYENNE_DEBUG
#define CAYENNE_PRINT Serial
#include <CayenneMQTTEthernet.h>

// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username[] = "MQTT_USERNAME";
char password[] = "MQTT_PASSWORD";
char clientID[] = "CLIENT_ID";

unsigned long lastMillis = 0;

void setup() {
	Serial.begin(9600);
	Cayenne.begin(username, password, clientID);
}

void loop() {
	Cayenne.loop();

	//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
	if(millis() - lastMillis > 10000) {
		lastMillis = millis();
		//Write data to Cayenne here. This example just sends the current uptime in milliseconds.
		Cayenne.virtualWrite(0, lastMillis);
		//Some examples of other functions you can use to send data.
		//Cayenne.celsiusWrite(1, 22.0);
		//Cayenne.luxWrite(2, 700);
		//Cayenne.virtualWrite(3, 50, TYPE_PROXIMITY, UNIT_CENTIMETER);
	}
}

//Default function for processing actuator commands from the Cayenne Dashboard.
//You can also use functions for specific channels, e.g CAYENNE_IN(1) for channel 1 commands.
CAYENNE_IN(1)
{
  int a1 = getValue.asInt();
Serial.println(a1);
}

@bestes and @jcruz there is a bug where slider does not work when device is added using arduino board on dashboard.

I try to connect me on a mega arduino
I’m waiting ! (Waiting for board to connect) … !!
I did the test twice.
If the bug persists. Tonight I disconnect everything and
try a new installation. I’ll come back to you tomorrow for
inform you. Thanks again.

Hi how are you
I tried again without success.I removed everything, reconfigured my devices
with the new passwords provided. I redid my first tests with
Light swicht, photoresistor, thermistor, it’s ok.

But sliders for (luminosity, servo motor), and pir motion sensor still do not work !! If you can solve the problem.
Thank you ROBERT

did you add a new device using BYOT. cause i was also not able to use slider when added device using arduino option.

J’ai fait fait plusieurs tests en suivant vos recommandations, sans succes.
MAIS je suis rester sur de l’arduino mega ou de l’arduino uno. le problème vient donc de cela ? Dans l’attente de la résolution du bug me recommandez vous de me fournir de raspberry ou autres ?

in English it’s better:slightly_smiling_face:
I did several tests following your recommendations, without success.
BUT I’m staying on the arduino mega or arduino uno. So the problem is that? Waiting for the resolution of the bug do you recommend me to provide raspberry or others?

you will use arduino . i am just saying to add a new device to your cayenne dashboard using bring your own thing option available to get the MQTT credential. and rest all is same.

follow step 3 in this Adding a New Device using MQTT

Good evening how are you
In France it is 8:45 pm.
It’s top, luminosity, distance, light swicht works.
I had a little difficulty writing the different codes
I must learn everything.
English, electronics, computers. It was not my job.
I will try to connect servomotor and motion. If you allow it
I come back to you, asking for help if I have problems with its two sensors.
Thanks again.
For the sensor HC-SR04, do you have a code working with CAYENNE_IN?
Here’s the one I’m doing that you edited in another topic.