Suchen

Registrieren

Vielen Dank für Deine Anmeldung! Du bekommst nun eine Email mit einem Aktivierungslink.

username already taken
Du hast bereits einen Account? .

Login

Passwort vergessen?
Du hast noch keinen Account? Registrieren um den UI-Designer und das Forum zu benutzen oder eigene Projekte anzulegen.
Log dich ein um Beiträge schreiben zu können!



Help with connection to external host

#1 Okt. 30, 2016 07:44:39 by rodrigolange

Help with connection to external host

Good morning friends!
I need to send through a button the following URL:

http://blynk-cloud.com/auth_key/update/D2?value=0

In connection attributes:
name: Connection
host: blynk-cloud.com/auth_key
port: 80
protocol: http

In the attributes of the button:
conection: Connection
sends: /update/D2?value=0

No return of the body, only 200

The App UI freezes! And do not send the command to the host. Using the browser that occurs normally.

What can I do? See the return types and parameters in the following documentation:

http://docs.blynkapi.apiary.io/#reference/0/write-pin-value-via-get/write-pin-value-via-get

Thank you for any help!

{
"type": "NetIOConfiguration",
"version": 2,
"connections": [
{
"name": "Connection",
"host": "blynk-cloud.com/60e48de35xxxxxxxxd5350202eece",
"port": 80,
"protocol": "http"
}
],
"pages": [
{
"name": "empty",
"label": "new",
"connection": "Connection",
"sound": "active",
"items": [
{
"top": 120,
"left": 110,
"width": 100,
"height": 100,
"type": "button",
"label": "Send 1",
"shape": "rounded",
"background": "45,45,45",
"border": "70,70,70",
"textcolor": "230,230,230",
"connection": "Connection",
"sends": [
"/update/D2?value=0"
]
}
],
"fitToScreen": true,
"width": 320,
"height": 480
}
],
"device": "iPhone",
"orientation": "portrait",
"name": "rodrigolange",
"description": "",
"navigation": "fix",
"pagebuttonwidth": "static",
"style": "plastic",
"theme": "dark",
"preventSleep": true,
"switchOnSwipe": true
}

Editiert rodrigolange (Okt. 30, 2016 07:52:03)

#2 Okt. 31, 2016 02:31:28 by rodrigolange

Help with connection to external host

Up!…

#3 Jan. 3, 2017 20:33:19 by rodrigolange

Help with connection to external host

Up! Help David

#4 Jan. 3, 2017 22:45:25 by david.eickhoff

Help with connection to external host

i'll take a look tomorrow

#5 Jan. 26, 2017 17:59:36 by david.eickhoff

Help with connection to external host

hi there, just took a look at your configuration. the problem is how the host / ip and port is handled to construct the request url

it is:
<protocol>://<host>:<port><command>

so in your case it would be
http://blynk-cloud.com/auth_key:80/update/D2?value=0

it is just a simple operation..
maybe you can try to leave the port field empty?
or I am afraid you need to put the auth_key to every command

#6 Mai 21, 2017 03:07:37 by rodrigolange

Help with connection to external host

Hi David!
Tks!
Now it works!