Skip to content

LIBLEMQHTTP

Francisco M. García-Moreno edited this page Mar 15, 2023 · 8 revisions

This is a C++ static library project for wearable devices with Tizen OS to easily and not repeat code for collecting, transferring and recording data of all its available sensors (accelerometer, gyroscope, heart rate, GPS, step counter, atmospheric pressure, ambient light, linear acceleration and gravity) via Bluetooth (GATT characteristics and GATT services), HTTP.

Use this library for Tizen Native applications (C++ projects).

Requirements:

Tizen IDE

Enable Debugging on your Tizen Watch:

  • Open the Watch’s Settings and go to the ‘About’ section
  • Go to Software and tap ‘Software Version’ five times
  • A prompt with show up telling that the Developer Option has been enabled
  • Open the Settings, go to the ‘About section’, and scroll to the bottom
  • Select “Debugging is turned off” and then enable the toggle

Enable WiFi on Tizen Watch

  • Open the Settings and go to the Connections menu
  • Go to Wi-Fi and enable ‘Always on’
  • Return to the Connections menu and connect to the same network as your PC

Connect your Tizen Watch to your PC

  • From the drop-down menu in Tizen Studio, select ‘Launch remote device manager’
  • Click Scan. This will find your smartwatch for pairing
  • Click on the Connect button, and your watch will be connected to the tool

How to use the source code of LIBLEMQHTTP in new Tizen native applications

  • Create a new Tizen Native application project
  • Make sure you select the profile Wearable and version 4.0 from a drop-down list and click Next.
  • And ensure you select the Native Application template.
  • Copy LIBLEMQHTTP.a file to your project into "lib" folder.
  • Include the path in the project menu: Tizen C++ Linker > Miscellaneous -> Other objects: "${workspace_loc:/${Your_Tizen_Project_Name}/lib/LIBLEMQHTTP.a}"