當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Arduino Arduino SigFox for MKRFox1200 - SigFox.end()用法及代碼示例

說明

De-initializes Sigfox 庫和模塊

用法

SigFox.end();

返回

None

示例

#include "SigFox.h"
#include "ArduinoLowPower.h"

void setup() {
  Serial.begin(115200);
  while (!Serial) {};

  // Uncomment this line and comment begin() if you are working with a custom board
  //if (!SigFox.begin(SPI1, 30, 31, 33, 28, LED_BUILTIN)) {
  if (!SigFox.begin()) {
    Serial.println("Shield error or not present!");
    return;
  else
    SigFox.end();

}

void loop(){
}

相關用法


注:本文由純淨天空篩選整理自arduino.cc大神的英文原創作品 Arduino SigFox for MKRFox1200 - SigFox.end()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。