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 Libraries | |
****************************************/ | |
#include <PubSubClient.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <stdio.h> | |
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 has devices | |
* based on ESP8266 chips that we don't support with a library. | |
* | |
* This example is given AS IT IS without any warranty | |
* | |
* Made by Jose García. | |
*************************************************************************************************/ | |
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 has devices | |
* based on ESP8266 chips that we don't support with a library. | |
* | |
* This example is given AS IT IS without any warranty | |
* | |
* Made by Jose García. | |
*************************************************************************************************/ | |
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 that we don't support with a library. This script is intended to send | |
* data through TCP | |
* | |
* This example is given AS IT IS without any warranty | |
* | |
* Made by Jose García. | |
*************************************************************************************************/ |
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 Libraries | |
****************************************/ | |
#include "UbidotsESPMQTT.h" | |
/**************************************** | |
* Define Constants | |
****************************************/ | |
#define TOKEN "...." // Your Ubidots TOKEN | |
#define WIFINAME "...." //Your SSID |
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
from imutils.object_detection import non_max_suppression | |
import numpy as np | |
import imutils | |
import cv2 | |
import requests | |
import time | |
import argparse | |
import time | |
import base64 |
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. | |
*************************************************************************************************/ |
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
/************************************************ | |
* 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
/************************************************************************************************* | |
* 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 | |
*************************************************************************************************/ | |
OlderNewer