# Le\_pos.api Requirements?

**URL:** https://mangoh.discourse.group/t/le-pos-api-requirements/1416
**Category:** mangOH Red
**Created:** [May 15, 2018, 3:03am UTC](https://mangoh.discourse.group/t/le-pos-api-requirements/1416 "2018-05-15T03:03:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![erickhj](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@erickhj](https://mangoh.discourse.group/u/erickhj)
#### Post date: [May 15, 2018, 3:03am UTC](https://mangoh.discourse.group/t/le-pos-api-requirements/1416/1 "2018-05-15T03:03:06Z")

</div>

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](http://legato.io/legato-docs/latest/le __pos__ interface_8h_source.html)

## .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

---

<div class="post-metadata">

### Author: ![erickhj](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@erickhj](https://mangoh.discourse.group/u/erickhj)
#### Post date: [May 15, 2018, 1:47pm UTC](https://mangoh.discourse.group/t/le-pos-api-requirements/1416/2 "2018-05-15T13:47:40Z")

</div>

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).
