<divclass="line"><aname="l00134"></a><spanclass="lineno"><aclass="line"href="class_nim_b_l_e_characteristic.html#aba05898f446e31222fbe509fa357c730"> 134</a></span> <spanclass="keywordtype">void</span><aclass="code"href="class_nim_b_l_e_characteristic.html#aba05898f446e31222fbe509fa357c730">setValue</a>(<spanclass="keyword">const</span> T &s) {</div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html">NimBLECharacteristicCallbacks</a></div><divclass="ttdoc">Callbacks that can be associated with a BLE characteristic to inform of events.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.h:172</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_a104baba3c4bbdee7aa28273d265e4c6f"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#a104baba3c4bbdee7aa28273d265e4c6f">NimBLECharacteristicCallbacks::Status</a></div><divclass="ttdeci">Status</div><divclass="ttdoc">An enum to provide the callback the status of the notification/indication, implemented for backward c...</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.h:180</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_a185eb5298cc042f1aceeba21caf0dcc9"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#a185eb5298cc042f1aceeba21caf0dcc9">NimBLECharacteristicCallbacks::onNotify</a></div><divclass="ttdeci">virtual void onNotify(NimBLECharacteristic *pCharacteristic)</div><divclass="ttdoc">Callback function to support a Notify request.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:616</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_a3c0c0f524bc0d00d24a7c5ea92c5cb7e"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#a3c0c0f524bc0d00d24a7c5ea92c5cb7e">NimBLECharacteristicCallbacks::onSubscribe</a></div><divclass="ttdeci">virtual void onSubscribe(NimBLECharacteristic *pCharacteristic, ble_gap_conn_desc *desc, uint16_t subValue)</div><divclass="ttdoc">Callback function called when a client changes subscription status.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:642</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_a523904b8d39e364db094f623403bad93"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#a523904b8d39e364db094f623403bad93">NimBLECharacteristicCallbacks::onRead</a></div><divclass="ttdeci">virtual void onRead(NimBLECharacteristic *pCharacteristic)</div><divclass="ttdoc">Callback function to support a read request.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:582</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_aac7caf4a80da061b5beda5ebcd214fc3"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#aac7caf4a80da061b5beda5ebcd214fc3">NimBLECharacteristicCallbacks::onWrite</a></div><divclass="ttdeci">virtual void onWrite(NimBLECharacteristic *pCharacteristic)</div><divclass="ttdoc">Callback function to support a write request.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:599</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_callbacks_html_ab17e7c61723a33cd3c922e3ca9c20f1e"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic_callbacks.html#ab17e7c61723a33cd3c922e3ca9c20f1e">NimBLECharacteristicCallbacks::onStatus</a></div><divclass="ttdeci">virtual void onStatus(NimBLECharacteristic *pCharacteristic, Status s, int code)</div><divclass="ttdoc">Callback function to support a Notify/Indicate Status report.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:627</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a></div><divclass="ttdoc">The model of a BLE Characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.h:62</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a062f52918f13c49a37ce8e58b9e7382a"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a062f52918f13c49a37ce8e58b9e7382a">NimBLECharacteristic::getDescriptorByHandle</a></div><divclass="ttdeci">NimBLEDescriptor * getDescriptorByHandle(uint16_t handle)</div><divclass="ttdoc">Return the BLE Descriptor for the given handle.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:182</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a1747ac4889c7adbb93a2d88a10327a47"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a1747ac4889c7adbb93a2d88a10327a47">NimBLECharacteristic::getCallbacks</a></div><divclass="ttdeci">NimBLECharacteristicCallbacks * getCallbacks()</div><divclass="ttdoc">Get the callback handlers for this characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:513</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a28b03617fe753133582ba4e58c60e52e"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a28b03617fe753133582ba4e58c60e52e">NimBLECharacteristic::getUUID</a></div><divclass="ttdeci">NimBLEUUID getUUID()</div><divclass="ttdoc">Get the UUID of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:227</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a29dc2505e1d3b4a7d6800d1547965d17"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a29dc2505e1d3b4a7d6800d1547965d17">NimBLECharacteristic::setCallbacks</a></div><divclass="ttdeci">void setCallbacks(NimBLECharacteristicCallbacks *pCallbacks)</div><divclass="ttdoc">Set the callback handlers for this characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:502</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a2c0ed8932ee257a8632e3d72e353489b"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a2c0ed8932ee257a8632e3d72e353489b">NimBLECharacteristic::removeDescriptor</a></div><divclass="ttdeci">void removeDescriptor(NimBLEDescriptor *pDescriptor, bool deleteDsc=false)</div><divclass="ttdoc">Remove a descriptor from the characterisitc.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:130</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a2ce9f62ecc3d1644ef4d58efe7a3c434"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a2ce9f62ecc3d1644ef4d58efe7a3c434">NimBLECharacteristic::indicate</a></div><divclass="ttdeci">void indicate()</div><divclass="ttdoc">Send an indication. An indication is a transmission of up to the first 20 bytes of the characteristic...</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:391</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a37e908d114f6ad2b4bf19c7cc4db9c54"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a37e908d114f6ad2b4bf19c7cc4db9c54">NimBLECharacteristic::getValue</a></div><divclass="ttdeci">std::string getValue(time_t *timestamp=nullptr)</div><divclass="ttdoc">Retrieve the current value of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:236</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a4fa6b8ed011d12e2b1f16e92a02b9a89"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a4fa6b8ed011d12e2b1f16e92a02b9a89">NimBLECharacteristic::toString</a></div><divclass="ttdeci">std::string toString()</div><divclass="ttdoc">Return a string representation of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:559</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a580ad0133fd82a673027c91cbb1c74fa"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a580ad0133fd82a673027c91cbb1c74fa">NimBLECharacteristic::getDataLength</a></div><divclass="ttdeci">size_t getDataLength()</div><divclass="ttdoc">Retrieve the the current data length of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:252</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a79759a98d9bdb761cb12c1ea6f601afc"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a79759a98d9bdb761cb12c1ea6f601afc">NimBLECharacteristic::getProperties</a></div><divclass="ttdeci">uint16_t getProperties()</div><divclass="ttdoc">Get the properties of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:205</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a7cd211a8bb9a0c2ffaed57f2af273677"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a7cd211a8bb9a0c2ffaed57f2af273677">NimBLECharacteristic::setValue</a></div><divclass="ttdeci">void setValue(const uint8_t *data, size_t size)</div><divclass="ttdoc">Set the value of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:523</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a7d09c29b26362f6ddcaf51a9c9dc8be4"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a7d09c29b26362f6ddcaf51a9c9dc8be4">NimBLECharacteristic::getValue</a></div><divclass="ttdeci">T getValue(time_t *timestamp=nullptr, bool skipSizeCheck=false)</div><divclass="ttdoc">A template to convert the characteristic data to <type>.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.h:120</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a84aa251a612810ec8d07e77ab03cb483"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a84aa251a612810ec8d07e77ab03cb483">NimBLECharacteristic::getService</a></div><divclass="ttdeci">NimBLEService * getService()</div><divclass="ttdoc">Get the service associated with this characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:213</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_a942b2d29d77fcef233549d0c4fd798da"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#a942b2d29d77fcef233549d0c4fd798da">NimBLECharacteristic::NimBLECharacteristic</a></div><divclass="ttdeci">NimBLECharacteristic(const char *uuid, uint16_t properties=NIMBLE_PROPERTY::READ|NIMBLE_PROPERTY::WRITE, NimBLEService *pService=nullptr)</div><divclass="ttdoc">Construct a characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:35</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_aa45461059e1992c816e32c371d17e813"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#aa45461059e1992c816e32c371d17e813">NimBLECharacteristic::notify</a></div><divclass="ttdeci">void notify(bool is_notification=true)</div><divclass="ttdoc">Send a notification. A notification is a transmission of up to the first 20 bytes of the characterist...</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:404</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_aae014669e9ce1ad01520d68fe0cc0fda"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#aae014669e9ce1ad01520d68fe0cc0fda">NimBLECharacteristic::createDescriptor</a></div><divclass="ttdeci">NimBLEDescriptor * createDescriptor(const char *uuid, uint32_t properties=NIMBLE_PROPERTY::READ|NIMBLE_PROPERTY::WRITE, uint16_t max_len=100)</div><divclass="ttdoc">Create a new BLE Descriptor associated with this characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:73</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_aba05898f446e31222fbe509fa357c730"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#aba05898f446e31222fbe509fa357c730">NimBLECharacteristic::setValue</a></div><divclass="ttdeci">void setValue(const T &s)</div><divclass="ttdoc">Convenience template to set the characteristic value to <type>val.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.h:134</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_abc5f4819e4d2c0956857ddd7a1064189"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#abc5f4819e4d2c0956857ddd7a1064189">NimBLECharacteristic::getDescriptorByUUID</a></div><divclass="ttdeci">NimBLEDescriptor * getDescriptorByUUID(const char *uuid)</div><divclass="ttdoc">Return the BLE Descriptor for the given UUID.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:158</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_acc3ea122771cd447103adfce22537379"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#acc3ea122771cd447103adfce22537379">NimBLECharacteristic::getHandle</a></div><divclass="ttdeci">uint16_t getHandle()</div><divclass="ttdoc">Get the handle of the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:196</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_aced225d46153b6969f6ded30c0190e39"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#aced225d46153b6969f6ded30c0190e39">NimBLECharacteristic::getSubscribedCount</a></div><divclass="ttdeci">size_t getSubscribedCount()</div><divclass="ttdoc">Get the number of clients subscribed to the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:334</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html_aed4b2241c89ad2a8f49117e2b9433e5b"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html#aed4b2241c89ad2a8f49117e2b9433e5b">NimBLECharacteristic::addDescriptor</a></div><divclass="ttdeci">void addDescriptor(NimBLEDescriptor *pDescriptor)</div><divclass="ttdoc">Add a descriptor to the characteristic.</div><divclass="ttdef"><b>Definition:</b> NimBLECharacteristic.cpp:104</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_descriptor_html"><divclass="ttname"><ahref="class_nim_b_l_e_descriptor.html">NimBLEDescriptor</a></div><divclass="ttdoc">A model of a BLE descriptor.</div><divclass="ttdef"><b>Definition:</b> NimBLEDescriptor.h:42</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html"><divclass="ttname"><ahref="class_nim_b_l_e_server.html">NimBLEServer</a></div><divclass="ttdoc">The model of a BLE server.</div><divclass="ttdef"><b>Definition:</b> NimBLEServer.h:42</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_service_html"><divclass="ttname"><ahref="class_nim_b_l_e_service.html">NimBLEService</a></div><divclass="ttdoc">The model of a BLE service.</div><divclass="ttdef"><b>Definition:</b> NimBLEService.h:34</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_u_u_i_d_html"><divclass="ttname"><ahref="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a></div><divclass="ttdoc">A model of a BLE UUID.</div><divclass="ttdef"><b>Definition:</b> NimBLEUUID.h:37</div></div>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.1 </li>