We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code:
package main; import platforms.xdk110; setup internet : WLAN { ssid = ""; psk = ""; } setup http : HttpRestClient { endpointBase = "http://google.com/test"; transport = internet; var foo = resource("","application/json"); } every 1 second { var x = accelerometer.x_axis.read(); if (x>500){ http.foo.write(""); } }
Retcode_T ConnectivityHttpRestClientHttp_Enable(void) { retcode = HttpClient_initialize(); if(retcode != RETCODE_OK) { return retcode; } return NO_EXCEPTION; }
var retcode needs to be declared
retcode
The text was updated successfully, but these errors were encountered:
I think this is already fixed.
With the current master you need to specify connection Using the example with declared connection
connection
setup internet : WLAN { ssid = ""; psk = ""; connection = Personal; } setup http : HttpRestClient { endpointBase = "http://google.com/test"; transport = internet; var foo = resource("","application/json"); } every 1 second { var x = accelerometer.x_axis.read(); if (x>500){ http.foo.write(""); } }
Generates
Retcode_T ConnectivityHttpRestClientHttp_Enable(void) { Retcode_T retcode = PAL_initialize(); if (retcode != RETCODE_OK) { return retcode; } PAL_socketMonitorInit(); retcode = HttpClient_initialize(); if(retcode != RETCODE_OK) { return retcode; } return NO_EXCEPTION; }
var retcode will be declared. The issue can be closed.
Sorry, something went wrong.
Thanks for trying it out! :)
No branches or pull requests
code:
var
retcode
needs to be declaredThe text was updated successfully, but these errors were encountered: