摘要 |
<p>The present invention provides a method for processing sensor data and a computing node. The method is applied to a computing node, and the computing node includes a hardware layer, an OS running on the hardware layer, and a browser engine running on the OS, where the hardware layer includes a first sensor device. The method includes: sensing, by the first sensor device, a state change, generating sensor data, and transmitting the sensor data to the OS in form of an event; determining, by the OS, an event type of the event according to the sensor data, and transmitting the sensor data and the event type to the browser engine; determining, by the browser engine according to the event type, that the event has been registered, and executing processing logic of the event. In the present invention, the browser engine shields difference between different OSs; with code written only once, the written application is capable of running on different OSs, thereby enabling an application to run across platform.</p> |