View grove-buzzer-with-mqtt-and-soracom-beam.ino
/* CodeZine: Grove IoT Starter Kit for SORACOM <grove-buzzer-with-mqtt-and-soracom-beam.ino> */
#include <WioLTEforArduino.h>
#include <WioLTEClient.h>
#include <PubSubClient.h> // https://github.com/knolleary/pubsubclient
#include <stdio.h>
#define APN "soracom.io"
#define USERNAME "sora"
#define PASSWORD "sora"
View grove-ultrasonic-ranger_soracom-harvest.ino
/* CodeZine: Grove IoT Starter Kit for SORACOM <grove-ultrasonic-ranger_soracom-harvest.ino> */
#include <stdio.h>
#include <WioLTEforArduino.h>
WioLTE Wio;
#include <Ultrasonic.h>
#define ULTRASONIC_PIN (WIOLTE_D38)
#define INTERVAL (3000)
#define RECEIVE_TIMEOUT (10000)
View WioLTE_emit_IMEI_to_SORACOM_Harvest.ino
#include <stdio.h>
#include <WioLTEforArduino.h>
WioLTE Wio;
#define CLEAR 0
#define GRAY 90
#define RED 91
#define GREEN 92
#define YELLOW 93
#define BLUE 94
View wio-lte-define-by-ota.ino
/*
Tag on SORACOM Air SIM
key=_conf
value={"working_mode":"uptime","loop_interval":5000,"send_cloud":true,"endpoint_host":"harvest.soracom.io","endpoint_port":8514}
(alt)value={"working_mode":"led","loop_interval":1000}
*/
#include <stdio.h>
#include <string.h>
#include <WioLTEforArduino.h>
WioLTE Wio;
View wio-lte-sent-to-both-harvest-and-funnel.ino
/* Send to both SORACOM Harvest and SORACOM Funnel */
#include <WioLTEforArduino.h>
#include <stdio.h>
#define INTERVAL (10000)
#define SENSOR_PIN (WIOLTE_D38)
WioLTE Wio;
View dmsg_of_ms2131i-8.txt
usb 1-1.2: new high-speed USB device number 4 using dwc_otg
usb 1-1.2: New USB device found, idVendor=12d1, idProduct=14fe
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: HUAWEI Mobile
usb 1-1.2: Manufacturer: HUAWEI
usb 1-1.2: SerialNumber: FFFFFFFFFFFFFFFF
usb-storage 1-1.2:1.0: USB Mass Storage device detected
scsi host0: usb-storage 1-1.2:1.0
usb 1-1.2: USB disconnect, device number 4
usb 1-1.2: new high-speed USB device number 5 using dwc_otg
View WioLTE-J_EC21-J_AT_debug.ino
/*
Working exapmle on Console;
```
>> Waiting for AT command
+CPIN: READY
+QUSIM: 1
View example_for_unashieldv2s_w_soracom_harvest.ino
/* Get temperature from on-board sensor, sending SORACOM Harvest via Sigfox */
#include "SIGFOX.h"
static UnaShieldV2S transceiver(COUNTRY_JP, false, "NOTUSED", true); /* ref: https://unabiz.github.io/unashield/ */
void setup() {
Serial.begin(9600);
if (!transceiver.begin()) stop(F("Unable to init SIGFOX module, may be missing"));
}
void loop() {
View extract_sigfox_sensit_repub_to_awsiot.js
/*
Needs ENVs.
- AWSIOT_ENDPOINT (You see Management Console in AWS IoT setting)
- AWSIOT_TOPIC_PREFIX (any you set)
*/
// code from https://github.com/sigfox/npm-sensit
const SensitMsg = function(sigfoxFrame){
this.frame = Number(parseInt(sigfoxFrame, 16));
this.frameStr = sigfoxFrame;
View WioLTE_MFT2017.ino
/* LED status
* bootup = Purple
* connect sucessful = Green
* Sensor Open = White
* Sensor Close = Blue
*/
/*
* D38: "Grove Touch sensor" or "Magnetic door Switch w/ Grove connector made in max"
*/