Thank you Deray,
I am already used to Cosm with an ethernet shield.
I did connect with sucess using Wilfy.writetosocket instead of print.
But when a plug some sensors doesn´t connect anymore to api.cosm.com. The sensors are from the Sparkfun weather meter. I am using 2 inputs (A5 and D2), GND and 5V.
Any idea ?