Reference   Language | Libraries | Comparison | Changes

SigFox

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);
}

See also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.