preview

Smarthings Architecture Analysis

Better Essays

\subsection{SmartThings} The open-source platform SmartThings \cite{SmartThings} allows users to build applications and connect them to devices, actions and services offered by the platform. SmartThings also enables the integration of new devices and provides support for applications (SmartApps) communicating with external Web services by sending notifications via REST messages. \begin{figure}[!ht] \centering \includegraphics[scale=0.60]{smartthing.PNG} \caption{Illustration of the SmartThings architecture.} \label{fig:smartthing} \end{figure} In Figure \ref{fig:smartthing} shows the infrastructure blocks of the devices illustrating the SmartThings architecture. The Hub provides communication between the "things" …show more content…

\begin{figure}[!ht] \centering \includegraphics[scale=0.60]{restthing.PNG} \caption{Illustration of the RestThings architecture.} \label{fig:restthing} \end{figure} The RESTful API allows you to transmit data between sensors that use IP protocol, gateways, Web applications using three types of data formats, JSON, XML and CSV. For access to RESTful objects, the HTTP protocol operations are used: the \textbf{GET} method is used to retrieve the current state of the device, the \textbf{PUT} method is used to modify the current state of the device, the \textbf{POST} method is used to create a new device; \textbf{DELETE} to remove an device and, in addition, the \textbf{LIST} method, which allows you to get all device connected to the platform. \subsubsection*{Use Case} The Monitor Temperature and Heart beat application is user interface in smart phone that combines physical and Web resources in the Restful API. The real-time data view is used to obtain current data from WSNs. The smart phone updates this information through sending GET to the restful gateway. The gateway will give the response as the feedback to the phone. The temperature sensor whose device number is one to get current internal lab room temperature as used in Smart Health environments \cite{Lavanya}. \subsection{Xively} The Xively platform\cite{Xively} provides an API for manager data from the sensors/devices through cloud services, allowing the visualization

Get Access