-20-
v7.0
Software
3.10.3. Sending Waspmote frames to Meshlium via HTTP
Since Meshlium Manager System v4.0.9, HTTPS method is the default method for sending data. HTTPS is the
recommended technology because it provides many cyber security services. Therefore, the HTTPS service is
always enabled on Meshlium.
However, Meshlium Manager System v4.1.0 and greater versions allow the user to
enable the HTTP
service
in order to be able to receive HTTP non-secure requests. The user must go to: Manager System
→
System
→
Security
→
HTTP Service:
Figure: Enable HTTP service in Meshlium Manager System
The
sendFrameToMeshlium()
function has been developed to send Waspmote frames from Waspmote to Meshlium
via non-secure HTTP request. Meshlium will parse (chop) the frame and will store it in its internal MySQL database.
This function requires the following parameters:
•
Meshlium’s IP address
•
Meshlium’s remote port
•
Data to send:
frame.buffer
will be used from the generated frame
•
Data length:
frame.length
will be used from the generated frame