Figuring out how to use cURL's writefunction. ruuvi.aux.ping(server) now works, but the rest of the code is a mess.