Wemos D1 R2+Cayenne+MQTT

have a look at this Converting Cayenne Arduino LIbrary sketches to Cayenne MQTT Arduino