Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
The Ethernet-Bee is used for connecting the senseBox to the Internet via cable. The LAN-Bee is based on the W5500 microchip from Wiznet, which enables a high data transfer rate.
#include <SPI.h>
#include <Ethernet.h>
#include <senseBoxIO.h>
void setup()
{
// Initializes the serial monitor
Serial.begin(9600);
// Restarts W5500 (LAN-Bee) in XBEE1 socket
senseBoxIO.powerXB1(false);
delay(250);
senseBoxIO.powerXB1(true);
Ethernet.init(PIN_XB1_CS);
}
void loop()
{
// Outputs IP address of the senseBox
ip = Ethernet.localIP();
Serial.print("IP: ");
Serial.println(ip);
delay(5000);
}
The LAN-Bee is supplied without LAN cable. For a permanent outdoor installation, flat LAN cables are particularly suitable, which can easily be laid outside through windows and doors. Especially in combination with Power over Ethernet (PoE), the senseBox can then be easily operated.