Doug Anson / mbedEndpointNetwork_BLE

Dependencies:   libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler

Revision:
33:4f6929e123f2
Parent:
16:fb9c3f2af2df
Child:
35:71eb3663ecbd
--- a/bt_network/BleUartRPC/UartRPCFunctions.cpp	Sat Jul 25 06:10:42 2015 +0000
+++ b/bt_network/BleUartRPC/UartRPCFunctions.cpp	Sat Jul 25 19:15:48 2015 +0000
@@ -56,7 +56,7 @@
  {
      uint8_t response[2];
      memset(response,0,2);
-     if (__rpc->dispatch(SOCKET_CLOSE_FN,NULL,response,2,"%s","") > 0) {
+     if (__rpc->dispatch(SOCKET_CLOSE_FN,NULL,response,2,"%s","loc") > 0) {
          DBG("ble_rpc_close_udp_socket: success...\r\n");
          return true;
      }
@@ -81,6 +81,14 @@
      return sent_length;
  }
  
+ int ble_rpc_get_location(BLELocation *location) 
+ {
+     uint8_t response[2];
+     memset(response,0,2);
+     __rpc->setLocationInstance(location);
+     return __rpc->dispatch(GET_LOCATION_FN,NULL,response,2,"%s","");
+ }
+ 
  int ble_rpc_recv_packet(uint8_t *buffer,int buffer_length)
  {
      //DBG("ble_rpc_recv_packet: checking for a local dispatch...\r\n");