This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include <SPI.h> | |
#include <SparkFunLSM9DS1.h> | |
LSM9DS1 imu; | |
#define LSM9DS1_M 0x1E | |
#define LSM9DS1_AG 0x6B | |
static unsigned long lastPrint = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author:Github - @mnirm | |
export class WifiHelper { | |
CryptoType: CryptoType = new CryptoType(); | |
AuthType: AuthType = new AuthType(); | |
public CredsToPayload(WifiCredentials: IWiFiCredentials){ | |
let payload = [0x10, 0x0E]; // Credential same for every wifi network | |
// Network ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var toType = function(obj) { | |
return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() | |
} |