Le_pos.api Requirements?


#1

I tried to build an app that adds gps coordinates but came to the conclusion after a long trial an error time that a blank program such as hello world will crash by simply just adding the api in question. I have looked over the RedSensorToCloud sample at what bindings are needed to be added but to no success. I looked at documentation but those are the only bindings required am I missing something? le_pos

.adef file

    executables:
    {
    	hellotrial = ( hellotrialComponent )
    }
    bindings:
    {
        hellotrial.hellotrialComponent.le_pos -> positioningService.le_pos
    

    
}
processes:
{
	envVars:
	{
		LE_LOG_LEVEL = DEBUG
	}

	run:
	{
		( hellotrial )
	}

	maxCoreDumpFileBytes: 512K
	maxFileBytes: 512K
}

version: 1.0.0
maxFileSystemBytes: 512K

.cdef file

sources:
{
	hellotrialComponent.c
}
requires:
{
	api:
    {
        
   	positioning/le_pos.api
	
        
    }
}

Just by placing those in the app will crash, any help would be much appreciated


#2

The error which I believe is the one that causes the crash. Im using a wp7601 module
May 15 13:45:05 | serviceDirectory[654]/serviceDirectory T=main | serviceDirectory.c DispatchToServer() 713 | Client (uid 1032 ‘apphellotrial’, pid 1702) disagrees with server (uid 0 ‘root’, pid 685) on protocol ID of service 'hellotrial
May 15 13:45:05 | UNKNOWN[1702]/framework T=main | LE_FILENAME ReceiveSessionOpenResponse() 684 | Unexpected server response: -6 (LE_FAULT).