int ret = SigFox.endPacket();

What is the result of the SigFox.endPacket() function?

In the Sigfox Arduino libraries documentation, you can read the next information:

Returns an int: 1 if the packet was sent successfully, 0 if there was an error

if (ret == 1)
Serial.println("OK");
else
Serial.println("KO");
while (1);

In the "Event trigger" example you find:

if (ret > 0) {
Serial1.println("No transmission");
} else {
Serial1.println("Transmission ok");
}

Which is correct?

Hi pietervannuffel,
thanks for spotting this! The EventTrigger example is correct, the function returns 0 if the transmission is ok.
I'll change the documentation of the other page accordingly! Thanks again!

Hey facchinm,

+1.

Short reminder, the documentation (Arduino SigFox for MKRFox1200 - Arduino Reference) is still wrong (return value description).

Best,
Daniel

Hey,
the code seems to be fix now ( 0 = ok ), the return description in the text is not correct.
would be nice to see consistent return values in a lib. SigFox.begin returns 1 = ok.

thanks.