Skip to content

Instantly share code, notes, and snippets.

@jotathebest
jotathebest / UbidotsMQTTJava.java
Created February 24, 2019 13:34
Ubidots MQTT with Java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mqttexample;
import java.io.UnsupportedEncodingException;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
@jotathebest
jotathebest / UbidotsHTTPJava.java
Created February 24, 2019 13:37
Ubidot HTTP Java Example
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package httpexample;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
@jotathebest
jotathebest / UbidotsEsp8266.ino
Last active October 20, 2019 23:51
Publish and Subscribe to Ubidots ESP8266
/*************************************************************************************************
* This Example sends harcoded data to Ubidots and serves as example for users that have devices
* based on ESP8266 chips
*
* This example is given AS IT IS without any warranty
*
* Made by Jose García @https://github.com/jotathebest/ ,
* adapted from the original WiFiClient ESP8266 example
*************************************************************************************************/
@jotathebest
jotathebest / Ubidots_UDP_python.py
Last active August 14, 2019 21:11
Script for sending data to Ubidots using UDP
import socket
import time
import json
import requests
import os
# UBIDOTS PARAMETERS
SERVER = "industrial.api.ubidots.com"
PORT = 9012
BUFFER_SIZE = 1024
@jotathebest
jotathebest / vsSettings.json
Created October 28, 2019 12:11
VScode settings
{
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, ColumnLimit: 120}",
"editor.renderWhitespace": "all",
"window.zoomLevel": 1,
"editor.wordWrap": "wordWrapColumn",
"editor.wrappingIndent": "same",
"editor.wordWrapColumn": 120,
"C_Cpp.clang_format_fallbackStyle": "Google",
"C_Cpp.enhancedColorization": "Enabled",
"C_Cpp.default.intelliSenseMode": "gcc-x64",
www.example.com