Zi Qi Yap / Mbed OS SPS30_TEST

Dependencies:   SPS30-sensor

Revision:
4:91fa1c5ebbe1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/DatastructConversion/conversions.h	Wed Mar 27 06:08:17 2019 +0000
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2018-2019, Sensors and IoT Capability Centre (SIOT) at GovTech.
+ *
+ * Contributor(s):
+ *    Lau Lee Hong  lau_lee_hong@tech.gov.sg
+ *    Lee Tze Han
+ *******************************************************************************/
+#ifndef CONVERSIONS_H
+#define CONVERSIONS_H
+
+#include <string>
+#include <stdint.h>
+
+char* StringToChar(const std::string& str);
+std::string IntToHex(uint32_t i);
+std::string IntToString(int v);
+char* DoubleToChar(char* str, double v, int decimalDigits);
+int StringToInt(const std::string& str);
+//std::string TimeToString(const std::time_t time);
+//std::time_t StringToTime(const std::string& str);
+
+#endif  // CONVERSIONS_H
\ No newline at end of file