Problem with strings?


hello,
i've got strange problem , don't understand do!

this code:
code: [select]

    if (client.connect("192.168.1.66", 80)) {
    serial.println("connected");
    client.println("get /openenergymonitor/api/post?apikey=5eb553b60df99202de5846fb306792e3 http/1.0");
    serial.println("disconnecting.");
    client.stop();
  }


when upload program (compile without errors) arduino ethernet remain locked , doesn't execute code.
if remove line "get..." string works.
do have write special characters in different way?

thanks!

do instead:

code: [select]
  client.println(f("get /openenergymonitor/api/post?apikey=5eb553b60df99202de5846fb306792e3 http/1.0"));

does work?


Arduino Forum > Using Arduino > Programming Questions > Problem with strings?


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial