Digital Potenciometer

Do you already have your arduino connected to the potentiometer? Have you already connected your arduino to the wifi network?

I think you should use MQTT. there are many libraries for arduino, and extensions for AppInventor. There are also free mqtt brokers which are enough for teaching purposes.