Hello there,
Just finished the MangOH RED getting started tutorial and setting up the hello world APP:
http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOH%20Red%20GSG%20-%20Windows%20R4/#t=41112261_mangOH_Red_GSG_-_HTML5%2F41112261_Tut_Quick_Start%2F41112261_Tut_Quick_Start.htm
Now i want to setup a simple program that sends information from the MangOH RED board to a costume backend.
The only problem i’m having is that i can’t find a good example. The only good thing i have found is some pseudo code:
For getting a mobile connection I have just made the following:
le_mrc_SetRadioPower(LE_ON)
On the le_mrc_AddNetRegStateEventHandler I have the following (pseudo code)
le_mdc_ProfileRef_t profile = le_mdc_GetProfile(LE_MDC_DEFAULT_PROFILE);
if (state == LE_MRC_REG_HOME || state == LE_MRC_REG_ROAMING)
{
if (le_mdc_StartSession(profile) == LE_OK)
{
LE_DEBUG("Started data session");
}
}
At the le_mdc_AddSessionStateHandler I have the following (pseudo code):
if ( le_mdc_IsIPv4(prof…
And i find the Legato service API examples unclear:
Is there anyone that has a simple example with filled in values or a available tutorial to achieve this ?
Thanks in advice,
Melvin
JayM2M
September 7, 2018, 2:01pm
2
Hi,
May be you could have a look to httpGet sample app:
Source code is located here:
<legato>/apps/sample/httpGet/httpGetComponent/httpGet.c
Jay
JayM2M,
Thank you for the info.
But i’m mostly interested in the setup of the SIM card and using it to communicate to a not yet existing back end any chance you have good example of that?
Thanks in advice,
Melvin
andcor
September 12, 2018, 11:23am
4
I’m sorry. Not sure if such an example exists. I had to read through the code to make it work. And also, I only had to make the data connection work as I have colleagues doing the rest of the work in a non-legato application.
Hi @MelvinWiegman ,
Can you please let us know the exact use case or end result you want and which custom back end you using.
Regards,
Bharath