Downlink queue post command do nothing

Home Forums Lora Network Server Downlink queue post command do nothing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31399
    Fred
    Participant

    Hello,

    i try to wake up a device with windows command line, but i doesn’t work.Can anyone help me ?

    here is the result
    ——————
    curl -v “http://192.168.1.100/api/lora/packet/queue” -X POST -H “Content-Type:application/json” -d ‘{“deveui”:”33-39-34-36-72-36-83-03″,”data”:”AQECAAAA”,”port”:”2″}’
    Note: Unnecessary use of -X or –request, POST is already inferred.
    * Trying 192.168.1.100…
    * TCP_NODELAY set
    * Connected to 192.168.1.100 (192.168.1.100) port 80 (#0)
    > POST /api/lora/packet/queue HTTP/1.1
    > Host: 192.168.1.100
    > User-Agent: curl/7.55.1
    > Accept: */*
    > Content-Type:application/json
    > Content-Length: 53
    >
    * upload completely sent off: 53 out of 53 bytes
    < HTTP/1.1 301 Moved Permanently
    < Location: https://192.168.1.100:443/api/lora/packet/queue
    < Content-Length: 0
    < Date: Fri, 04 Dec 2020 15:35:38 GMT
    <
    * Connection #0 to host 192.168.1.100 left intact

    in the dashboard in dowlink queue there is nothing

    Thanks

    #31400
    Jason Reiss
    Keymaster

    The response is a redirect.

    Post to HTTPS instead, https://192.168.1.100/api/lora/packet/queue

    #31401
    Fred
    Participant

    I try your solution but i have a another problem

    curl -v “https://192.168.1.100/api/lora/packet/queue&#8221; -X POST -H “Content-Type:application/json” -d ‘{“deveui”:”33-39-34-36-72-36-83-03″,”data”:”AQECAAAA”,”port”:”1″}’
    Note: Unnecessary use of -X or –request, POST is already inferred.
    * Trying 192.168.1.100…
    * TCP_NODELAY set
    * Connected to 192.168.1.100 (192.168.1.100) port 443 (#0)
    * schannel: SSL/TLS connection with 192.168.1.100 port 443 (step 1/3)
    * schannel: checking server certificate revocation
    * schannel: using IP address, SNI is not supported by OS.
    * schannel: sending initial handshake data: sending 162 bytes…
    * schannel: sent initial handshake data: sent 162 bytes
    * schannel: SSL/TLS connection with 192.168.1.100 port 443 (step 2/3)
    * schannel: failed to receive handshake, need more data
    * schannel: SSL/TLS connection with 192.168.1.100 port 443 (step 2/3)
    * schannel: encrypted data got 1317
    * schannel: encrypted data buffer: offset 1317 length 4096
    * schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) – La chaîne de certificats a été fournie par une autorité qui n’est pas approuvée.
    * Closing connection 0
    * schannel: shutting down SSL/TLS connection with 192.168.1.100 port 443
    * schannel: clear security context handle
    curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) – La chaîne de certificats a été fournie par une autorité qui n’est pas approuvée.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.