viernes, 18 de mayo de 2018

include "Differing Items" with long-enough dicts in PyTest result

Debes añadir -vv como argumento de pytest


miércoles, 18 de abril de 2018

Run mqtt-spy in Ubuntu 17.10

first install javafx deps

sudo apt-get install openjfx

Then download the latest jar and put in /opt

Download: https://github.com/eclipse/paho.mqtt-spy/wiki/Downloads

Run!

miércoles, 11 de abril de 2018

Publish / Share / Register your own library in PlatformIO Library Registry

Step 1: publish your project on github

You must first create your manifest file that must be called "library.json" and it must be in the root of the project


In my case it has the following structure:

{
  "name": "EasyOta",
  "keywords": "ota, over,to, air,esp8266",
  "description": " The easiest way to implement ota on an esp8266 based chip using an HTTP server",
  "repository":
  {
    "type": "git",
    "url": "https://github.com/Eitol/EasyOta.git"
  },
  "authors":
  [
    {
      "name": "Hector Oliveros",
      "email": "hector.oliveros.leon@gmail.com",
      "maintainer": true
    }
  ],
  "license": "MIT",
  "version": "1.0",
  "frameworks": "arduino",
  "platforms": "espressif8266"
}



Step 2: copy the url of the raw project

The url is some like this:
https://raw.githubusercontent.com/GITHUB_USER/PROJECT/master/library.json

Example:

For my project with url = https://github.com/Eitol/EasyOta

Then, the url is:

https://raw.githubusercontent.com/Eitol/EasyOta/master/library.json



Step 3: Use the url to register your library

The command is:

platformio lib register [MANIFEST_URL]

example:

platformio lib register https://raw.githubusercontent.com/Eitol/EasyOta/master/library.json


lunes, 9 de abril de 2018

FIX: No output from qDebug

Si qDebug no muestra nada en Qt 5.9 entonces debes crear un fichero qtlogging.ini (vacio) en el directorio home: 
.config/QtProject/qtlogging.ini