Skip to content

Instantly share code, notes, and snippets.

/*******************************************************************************
Main Source File
Company:
Microchip Technology Inc.
File Name:
main.c
Summary:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("A1,0,0,804.04,37.60,46.55,-32.09,77.14,-16044,192,-4992,-889,-575,-173,19.688168,-100.559210,-40");
delay(2000);
}
/*******************************************************************************
Created by Eduardo Contreras @ Electronic Cats 2016
Based on Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
PLEASE REFER TO THIS LMIC LIBRARY https://github.com/things-nyc/arduino-lmic
LoRaShield
In this example you can send GPS information (Compatible with the L80)
or a temperature read by the ADC
Example
*******************************************************************************/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path');
const fs = require('fs');
var fetch = require('node-fetch');
var atob = require('atob');
var Highcharts = require('highcharts');
////////////////Medidor de basura///////////////////
{"app_id":"rfm95",
"dev_id":"garbage",
"hardware_serial":"00CA6F3FA81EBFF8",
"port":1,
"counter":134,
"payload_raw":"AQATWA==",
"payload_fields":{
#include <SPI.h>
//#include <tinySPI.h>
//#include <avr/sleep.h>
//#include <avr/wdt.h>
#define DIO0 2
#define DIO5 5
#define NSS 10
#define TEMP A2
@wero1414
wero1414 / MPLABX
Last active December 30, 2017 21:23
#include "mcc_generated_files/mcc.h"
//#include "AES-128_V10.h"
#include "mcc_generated_files/LoRaWAN/lorawan_aes.h"
#include "mcc_generated_files/LoRaWAN/AES.h"
void RFM_Write(uint8_t, uint8_t);
uint8_t RFM_Read(uint8_t);
void RFM_Init(void);
void RFM_Continuous_Receive(void);
static void RFM_Reset(void);
/*******************************************************************************
Created by Eduardo Contreras @ Electronic Cats 2016
Based on Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
PLEASE REFER TO THIS LMIC LIBRARY https://github.com/things-nyc/arduino-lmic
LoRaShield
In this example you can send GPS information (Compatible with the L80)
or a temperature read by the ADC
Example
*******************************************************************************/
/*
Copyright 2017 Roguish, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@wero1414
wero1414 / ABP
Last active August 9, 2017 21:57
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
#include <math.h>
#include <SoftwareSerial.h>
#define _USE_GPS_
#ifdef _USE_GPS_