GetHTTPData command from wiser2

Discussion in 'C-Bus Wiser 2 Controller' started by Benroe, Sep 9, 2018.

  1. Benroe

    Benroe

    Joined:
    Mar 29, 2015
    Messages:
    3
    Likes Received:
    0
    Location:
    Huddersfield, Yorkshire
    Hi
    I Wonder if someone could help with this......
    I would like to send a GetHttpdata Command from wiser2 to an API Running on a raspberry pi. I can get everything to work
    but only when I have PICED connected to my c-bus network. I had a similar problem with the postHTTPdata command but resolved this by following it with a readposthttpdata so..

    Begin
    PostHTTPData('http://192.168.1.3/Port/Set/0/0,Data', '');;
    Delay("0:00:01");
    ReadHTTPPostData(DataString);
    Delay("0:00:05");
    ReadHTTPPostData(DataString);
    SetLightingState("CCTV lounge", OFF);
    end;

    However when using the GetHTTPdata command nothing happens unless connected to cbus through PICED . Ive used Wireshark and again there's going on unless connected to PICED. my code runs as follows:-

    Begin
    GetHTTPData('http://192.168.1.5:5005/Living Room/playpause');
    Delay("0:00:01");

    SetLightingState("Sonos master bed p/p", OFF);
    end;
    Help !!!
     
    Benroe, Sep 9, 2018
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.