当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


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()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。