Spivey
Published © MIT

Publish Any Event to Wia Using Your MKR FOX 1200

How to set up a MKR FOX 1200 and publish an event or location through Sigfox to Wia.

IntermediateFull instructions provided1,384
Publish Any Event to Wia Using Your MKR FOX 1200

Things used in this project

Hardware components

Arduino MKR Fox 1200
Arduino MKR Fox 1200
×1
Sigfox Antenna
×1
Micro-USB to USB Cable (Generic)
Micro-USB to USB Cable (Generic)
×1

Software apps and online services

Wia
Wia
Sigfox
Sigfox

Story

Read more

Schematics

Arduino MKR FOX 1200

Code

Publish an Event to Sigfox

Arduino
#include <SigFox.h>   // must include the SigFox library
  
void setup() {
  Serial.begin(9600); 
  while(!Serial) {}; //waits for Serial to be available
  if (!SigFox.begin()) { //ensures SigFox is connected
    Serial.println("Shield error or not present!");
    return;
  }
  
  String version = SigFox.SigVersion();
  String ID = SigFox.ID();
  String PAC = SigFox.PAC();

  Serial.println("ID  = " + ID);
  Serial.println("PAC = " + PAC);

  delay(100);

  // Send the module to the deepest sleep
  SigFox.end();
}

void loop() {
}

Publish an Event to Wia

Arduino
#include <SigFox.h>   // must include the SigFox library

void setup() {
  Serial.begin(9600); 
  while(!Serial) {}; //waits for Serial to be available
  if (!SigFox.begin()) { //ensures SigFox is connected
    Serial.println("Shield error or not present!");
    return;
  }
  Serial.print("sending");
  Serial.print(SigFox.internalTemperature())
  SigFox.begin();
  SigFox.beginPacket();
  SigFox.print(SigFox.internalTemperature()); //content of the packet
  
  SigFox.endPacket();
  Serial.print("sent");
}
void loop() {
  while(1);
}

Credits

Spivey
82 projects • 59 followers
Tourist in a Tutu || US Born || Melbourne/Mexico/California Raised || New Yorker at ❤️ || SF to Dublin to be COO of Wia the best IoT startup

Comments