High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: GattCharacteristic.cpp
- Revision:
- 34:da2ea8cd6216
- Parent:
- 31:2c94f0501807
- Child:
- 51:0329477be5e2
--- a/GattCharacteristic.cpp Thu Apr 03 01:45:33 2014 +0100 +++ b/GattCharacteristic.cpp Wed May 21 15:01:14 2014 +0100 @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + #include <stdio.h> #include <string.h> @@ -23,7 +23,7 @@ /*! @brief Creates a new GattCharacteristic using the specified 16-bit UUID, value length, and properties - + @note The UUID value must be unique in the service and is normally >1 @param[in] id @@ -42,17 +42,20 @@ // UUID = 0x2A19, Min length 2, Max len = 2, Properties = write GattCharacteristic c = GattCharacteristic( 0x2A19, 2, 2, BLE_GATT_CHAR_PROPERTIES_WRITE ); - + @endcode */ /**************************************************************************/ -GattCharacteristic::GattCharacteristic(uint16_t id, uint16_t minLen, uint16_t maxLen, uint8_t props) +GattCharacteristic::GattCharacteristic(uint16_t id, + uint16_t minLen, + uint16_t maxLen, + uint8_t props) { uuid = id; memcpy(&properties, &props, 1); lenMin = minLen; lenMax = maxLen; -// handle = 0; + // handle = 0; } /**************************************************************************/