char device[] = "livingroom"?
If I use that code it compiles but it only puts the "1" in the emoncms in the field where the name is suposseds to go instead of the number field
char device is just a pointer to string livingroom and it point to the first memory position which contains "l"
Maybe this way:
client.print("GET /emoncms/input/post.json?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxx&json={");
client.print(*device);//Print what the pointer is pointing to