test code 123
Fork of LinkNode-Test by
nRF51822_Science_Journal/goosci_utility.h
- Committer:
- youkee
- Date:
- 2016-10-28
- Revision:
- 1:b0d4fbbdb244
- Parent:
- 0:1ad0e04b1bc5
File content as of revision 1:b0d4fbbdb244:
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _GOOSCI_UTILITY_H_ #define _GOOSCI_UTILITY_H_ #include <stdio.h> #include "ble/BLE.h" #include "goosci_utility.h" #include "sensor.pb.h" #include "pb.h" #include "pb_decode.h" #include "pb_common.h" #include "mbed.h" #include "pb_encode.h" // The serial port on leonardo will hang (UART buffer full) if the // serial port is not physically opened on the USB host. This // function will block until the serial port is open. //void wait_for_serial(void); #ifdef __cplusplus extern "C" { #endif #define BTLE_BUFFER_SIZE 20 void send_int_data(GattCharacteristic & characteristic, unsigned long timestamp, int value); void send_float_data(GattCharacteristic & characteristic, unsigned long timestamp, float value); #ifdef __cplusplus } #endif #endif