Arduino SigFox for MKRFox1200 - SigFox.beginPacket()

Description

Begins the process of sending a packet

Syntax

SigFox.beginPacket();

Parameters

None

Example

#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");
  SigFox.endPacket();
  while(1);
}