@spacefractal Did you finally solve the problem with multitasking?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
FUNCTION CompruebaINET:
// Comprobamos conexión, 1=Si
LOCAL bInternet=0, sock%
SOCK_INIT()
sock% = SOCK_TCPCONNECT("www.google.com", 80)
IF sock%>=0 THEN bInternet=TRUE // check return value. Is it 0 or -1 on error?
SOCK_CLOSE(sock%)
SOCK_SHUTDOWN
RETURN bInternet
ENDFUNCTION
Quote from: spacefractal on 2017-Jan-10
please in English, thanks.
There is nothing im can do can testing in this case, because im does nothing know how sockets really works. Also somewhere in the future, Apple might even block it, its not sent via https. But the deadlead, which was last two week, got delayed with no new date. So im guess, very few apps really do that.
That understand, because not all kind of apps would require https at all.
Quote from: mentalthink on 2017-Jan-10
Pérdona que me meta en el hilo MSX (es que ando con esto de los sockets con un NodeMCU controlando un servo por WIFI), el asunto es que tengo que enviar muchos valores... Tengo que abrir y cerrar el socket cada vez que envío un valor?¿, o puedo dejar el socket abierto y cerrarlo después de haber enviado lo que me interese... No se si me explico.
El asunto me funciona, aunque tarda unos segundos en responder el servo (Supongo que puede ser que la señal va al router y vuelve al MCU, o que estoy haciendo algo mal).
Saludos.
FUNCTION CompruebaINET:
// Comprobamos conexión, 1=Si
LOCAL bInternet=0, sock%
SOCK_INIT()
sock% = SOCK_TCPCONNECT("www.google.com", 80)
IF sock%>=0 THEN bInternet=TRUE // check return value. Is it 0 or -1 on error?
SOCK_CLOSE(sock%)
SOCK_SHUTDOWN
RETURN bInternet
ENDFUNCTION
Showing Recent Messages
"__GLBASIC__::SHOWSCREEN()", referenced from:
__GLBASIC__::__MainGameSub_() in gpc_temp0.o
"__GLBASIC__::__DG_DEBUG", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__glb_AppName()", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_FRAMERATE", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_SCHOOLVER", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_WANTMOUSE", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_FULLSCREEN", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_MULTISAMPLE", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::DGStr::clear()", referenced from:
__GLBASIC__::DGStr::~DGStr() in gpc_tempg.o
__GLBASIC__::DGStr::~DGStr() in gpc_temp0.o
"__GLBASIC__::DGStr::DGStr(__GLBASIC__::CGStr)", referenced from:
__GLBASIC__::__BuildSerial() in gpc_tempg.o
__GLBASIC__::__GetPrpjectVersionGLB() in gpc_tempg.o
__GLBASIC__::__MainGameSub_() in gpc_temp0.o
"__GLBASIC__::DGStr::DGStr(char const*)", referenced from:
__GLBASIC__::__CompileTime() in gpc_tempg.o
__GLBASIC__::DGStr::operator=(char const*) in gpc_temp0.o
"__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, float, float, int)", referenced from:
__GLBASIC__::__MainGameSub_() in gpc_temp0.o
"__GLBASIC__::__DG_RESX", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::__DG_RESY", referenced from:
___GLB_Defaults in gpc_temp0.o
"__GLBASIC__::operator+(__GLBASIC__::DGStr const&, __GLBASIC__::CGStr)", referenced from:
__GLBASIC__::__CompileTime() in gpc_tempg.o
"__GLBASIC__::operator+(__GLBASIC__::DGStr const&, __GLBASIC__::DGStr const&)", referenced from:
__GLBASIC__::__CompileTime() in gpc_tempg.o
"___EndProgram", referenced from:
-[EAGLView drawView] in iphoneeaglview.o
"___glb_set_cmd_line", referenced from:
-[AppController application:handleOpenURL:] in iphoneappcontroller.o
-[AppController application:didFinishLaunchingWithOptions:] in iphoneappcontroller.o
"_glb_allow_escape", referenced from:
-[AppController applicationDidEnterBackground:] in iphoneappcontroller.o
"_glbasic_get_screen_size", referenced from:
-[EAGLView createFramebuffer] in iphoneeaglview.o
"_glbasic_notify_screen_change", referenced from:
-[EAGLView createFramebuffer] in iphoneeaglview.o
"_iPhoneMain", referenced from:
-[EAGLView drawView] in iphoneeaglview.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)