Mostrando entradas con la etiqueta library. Mostrar todas las entradas
Mostrando entradas con la etiqueta library. Mostrar todas las entradas

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


martes, 28 de julio de 2015

Importar libreria JGroups en NetBeans

Quiźas intentaste correr algún código y te mostraba el error "package org.jgroups does not exist"
Esto pasa porque debes incluir la libreria JGruup dentro de tu proyecto



Para usar la libreria JGrups en NetBeans debes hacer los siguientes pasos:

Puedes descargar este código de ejemplo y lo agregas a tu proyecto de NetBeans para probar que JGroups funcione:
ProgrammaticChat.java


2- Descargas los ficheros .jar de JGroups en su pag oficial:


En este caso descargamos la última versión (3.6.4)

Una vez ahí debemos descargar los dos .jar y guardarlos en el directorio del proyecto de NetBeans


3- Entras en NetBeans y entras en Tools --> Libraries



4- En la nueva ventana creada seleccionas New Library


5- Le ponemos el nombre JGroups y luego en OK



6- En classpath agregamos el .jar binario y en Sources agregamos el de Sources





Luego te vas a las propiedades del proyecto 


y Agregas la libreria JGroup que acabamos de crear



Y listo, ya no hay errores