<commit_before>// based on Ray Burnette 20161013 work
// added XBEE transport by <NAME> 20171001
// added MQTT-SN encapsulation by <NAME> 20171001


#include <SPI.h>
#include <WiFi.h>
#include <TinyGPS++.h>                                  // Tiny GPS Plus Library
#include <SoftwareSerial.h>
#include "./functions2.h"

#define disable 0
#define enable  1

unsigned int channel = 1;
static const uint32_t GPSBaud = 9600;                   // Ublox GPS default Baud Rate is 9600
unsigned long gpsTimer = millis();
int positioned = 0;


void setup() {

  Serial.begin(115200);    // Console debug
  Serial1.begin(9600);    // Link to Particle LTE
  ss.begin(GPSBaud);      // Link to GPS
  pinMode(14, OUTPUT);    // GPS chip enable pin
  digitalWrite(14, LOW);  // Shut down GPS for now...
  pinMode(15, INPUT);     // GPS reading indicator
  Serial.printf("\n\nSDK version:%s\n\r", system_get_sdk_version());
  Serial.println(F("ESP8266 mini-sniff - MQTT version"));
  Serial.println(TinyGPSPlus::libraryVersion());
  delay (3000);           // Estabilize GPS - 3 seconds OFF
  digitalWrite(14, HIGH); // Turn ON GPS

  do {
        Serial.print("Reading GPS: Satellites->"); Serial.println(gps.satellites.value());
        readGps(500);
        delay (1);
          if (gps.location.lat()!=0){
            lat=gps.location.lat();
            lon=gps.location.lng();
            Serial.print("Position: ");
            Serial.print(lon);
            Serial.print("/");
            Serial.println(lat);<commit_msg>Removed PPS pin reading<commit_after>// based on Ray Burnette 20161013 work
// added XBEE transport by <NAME> 20171001
// added MQTT-SN encapsulation by <NAME> 20171001


#include <SPI.h>
#include <WiFi.h>
#include <TinyGPS++.h>                                  // Tiny GPS Plus Library
#include <SoftwareSerial.h>
#include "./functions2.h"

#define disable 0
#define enable  1

unsigned int channel = 1;
static const uint32_t GPSBaud = 9600;                   // Ublox GPS default Baud Rate is 9600
unsigned long gpsTimer = millis();
int positioned = 0;


void setup() {

  Serial.begin(115200);    // Console debug
  Serial1.begin(9600);    // Link to Particle LTE
  ss.begin(GPSBaud);      // Link to GPS
  pinMode(14, OUTPUT);    // GPS chip enable pin
  digitalWrite(14, LOW);  // Shut down GPS for now...
  Serial.printf("\n\nSDK version:%s\n\r", system_get_sdk_version());
  Serial.println(F("ESP8266 mini-sniff - MQTT version"));
  Serial.println(TinyGPSPlus::libraryVersion());
  delay (3000);           // Estabilize GPS - 3 seconds OFF
  digitalWrite(14, HIGH); // Turn ON GPS

  do {
        Serial.print("Reading GPS: Satellites->"); Serial.println(gps.satellites.value());
        readGps(500);
        delay (1);
          if (gps.location.lat()!=0){
            lat=gps.location.lat();
            lon=gps.location.lng();
            Serial.print("Position: ");
            Serial.print(lon);
            Serial.print("/");
            Serial.println(lat);
{'fraction_non_alphanumeric': 0.1373534338358459, 'fraction_numerical': 0.047571189279731994, 'mean_word_length': 2.472093023255814, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7194188', 'n_tokens_mistral': 1060, 'n_tokens_neox': 936, 'n_words': 257}