Called after writing SigFox data to the remote connection, completes the process of sending a packet started by beginPacket.
SigFox.endPacket();
Returns an int: 1 if the packet was sent successfully, 0 if there was an error
#include <SigFox.h>
#include <ArduinoLowPower.h>
void setup() {
Serial.begin(115200);
while (!Serial) {};
if (!SigFox.begin()) {
Serial.println("Shield error or not present!");
return;
}
void loop() {
SigFox.begin();
SigFox.beginPacket();
SigFox.print("123456789012");
int ret = SigFox.endPacket();
if (ret == 0)
Serial.println("OK");
else
Serial.println("KO");
while (1);
}