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
www.example.com |
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
{ | |
"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", |
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
import socket | |
import time | |
import json | |
import requests | |
import os | |
# UBIDOTS PARAMETERS | |
SERVER = "industrial.api.ubidots.com" | |
PORT = 9012 | |
BUFFER_SIZE = 1024 |
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
/************************************************************************************************* | |
* 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 | |
*************************************************************************************************/ |
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
/* | |
* 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; |
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
/* | |
* 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; |
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
/************************************************************************************************* | |
* This Example sends harcoded data to Ubidots and serves as example for users that have devices | |
* based on Arduino Ethernet shield | |
* | |
* This example is given AS IT IS without any warranty | |
* | |
* Made by Jose García., adapted from the original Arduino Ethernet example | |
*************************************************************************************************/ | |
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
/************************************************ | |
* Auxiliar Functions | |
***********************************************/ | |
// Function to read command from serial port | |
char* readSerial(int max_char_length=40) { | |
int i = 0; | |
char command[max_char_length]; | |
for (i = 0; i < max_char_length; i++) { | |
command[i] = '\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
import sys | |
import glob | |
import serial | |
import time | |
class ArduinoSerial: | |
def __init__(self, *args, **kwargs): | |
self.available_ports = [] |
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
/************************************************************************************************* | |
* This Example sends data to Ubidots and serves as example for users that makes use of WiDo boards | |
* | |
* This example is given AS IT IS without any warranty | |
* | |
* Based on the official Adafruit WebClient example: | |
* https://github.com/Arduinolibrary/DFRobot_WiDo_Arduino_IOT_Board_DFR0321/blob/master/Adafruit_CC3000_Library/Adafruit_CC3000_Library-master/examples/Others_From_Adafruit/WebClient/WebClient.ino | |
* | |
* Made by Jose García. | |
*************************************************************************************************/ |
NewerOlder