Commit Graph

69 Commits

Author SHA1 Message Date
Federico Fissore 5e98cd8528 Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
Cristian Maglie 71de447620 Bridge: Added UDP packet support.
Fix #1716
2015-06-30 13:32:42 +02:00
Cristian Maglie e016835289 Bridge: Added compatibility layer with older YunClient 2015-06-30 12:20:12 +02:00
Cristian Maglie 0c109b5242 Bridge: Renamed YunClient/YunServer to BridgeClient/BridgeServer
This makes the library more consistent and not tied to a specific board.
2015-06-30 12:20:11 +02:00
Cristian Maglie 954f59d9ce Bridge: Fixed File "duplicate definitions" when using SD and Bridge libraries together
The two File classes have been enclosed into different namespaces.

To guarantee compatibility with old sketches that uses only one of the two
libraries an additional line:

   using namespace xxxxx;

has been added so the users can still use "File" where there is no ambiguity.

BridgeLib::File and SDLib::File classes have been also aliased to BridgeFile
and SDFile respectively, users are encouraged to use that instead of File.
2015-06-30 11:49:53 +02:00
Rob Kiefer 2774f5a4c9 Resets YunClient in stop() so unread buffered data is not read if YunClient is reused. 2015-06-30 11:35:18 +02:00
Rob Kiefer 6f566776f9 Fixes YunClient's connected() to behave like other Clients (WiFiClient, EthernetClient, etc) 2015-06-30 11:35:17 +02:00
Federico Fissore cb29f4832e Bridge: Temboo examples update. Released version 1.0.7 2015-06-10 17:22:52 +02:00
Federico Fissore 07685a07dc Bridge: releasing version 1.0.6 2015-06-10 14:57:13 +02:00
Arturo Guadalupi 8a54c70a94 Added literal float to improve precision
according to #2922 I added missing float literals to improve the accuracy of the result.

If sensorValue = 1:

Before: voltage = 4

Now: voltage = 4.88
2015-06-05 12:29:50 +02:00
Federico Fissore 9166828bfe Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191 2015-05-20 17:10:06 +02:00
Federico Fissore f118dee688 Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904 2015-04-30 16:32:32 +02:00
Federico Fissore 5519f15663 Libraries: added help files to mitigate missing contextual reference issue 2015-04-23 17:19:15 +02:00
Federico Fissore 0b4b76fa67 Bundled libraries update 2015-04-23 13:01:30 +02:00
Arturo Guadalupi 9eb2bac42e First licenses review 2015-04-23 12:53:30 +02:00
Martino Facchin 8b019650d5 Merge pull request #2848 from facchinm/testBridgePut
Bridge: fix transfers which ignored host response
2015-04-02 11:03:31 +01:00
Arturo Guadalupi 501333a8ef new theme 2015-04-01 16:11:59 +02:00
Martino Facchin d6f9a6703c Bridge: increase version number 2015-03-31 09:30:51 +02:00
Martino Facchin 45ff4f60b3 Bridge: fix transfers which ignored host response
Bridge.put() was broken by #2781 because it used transfer() 2-parameters overloaded version, which imply that rxlen == 0.
But the Linux Bridge responded, so the check (i >= rxlen) was true and the function timed out after retrying 50 times.

Every bridge command (python side) has been checked and now SHOULD strictly follow this rule and never ignore silently the received data
2015-03-30 15:56:06 +02:00
Federico Fissore f7106ecc65 Libraries: version now compliant with semver. See http://semver.org/ 2015-03-27 15:01:49 +01:00
arve0 ff48ee4c5b do not trust received msg length to read forever 2015-03-16 21:23:01 +01:00
Federico Fissore eecc9ea132 TemperatureWebPanel.ino: added missing semicolons 2015-03-12 09:11:32 +01:00
Iván e02689e70e Print "Yún" and not "Y�n"; "degrees C" to "ºC"
Hi, just got a Yún few days ago and noticed that when testing stuff, just cosmetic.

Thanks.
2015-03-02 23:27:55 +01:00
sngl b1b83c0989 Updated YunClient::connect method'
Now it stop the connection on the linux side when it fails
2015-02-27 11:08:29 +01:00
Federico Fissore 0b6e274b5d Bridge.ino example: comment fixed 2015-02-19 18:08:15 +01:00
Moredread 256f39b4d8 Fix spelling in YunSerialTerminal 2015-02-14 19:00:15 +01:00
Arturo Guadalupi ce412a0461 Added README.adoc for the library manager project 2015-01-16 17:14:02 +01:00
Cristian Maglie 6d7751cf5f Fixed some libraries metadata. 2015-01-16 12:22:24 +01:00
Federico Fissore e52b4edd6f Temboo: removing ControlBySMS and SendDataToMySQL examples, as per Temboo request 2014-11-12 17:55:54 +01:00
Federico Fissore d002c3ee04 Fixed typos in MailboxReadMessage example 2014-10-02 15:32:18 +02:00
Fede85 9a64c1bb1c removed Xively and Cosm examples 2014-09-25 14:50:42 +02:00
Federico Fissore 98da28a3ce Bridge: slowing down ConsoleRead a bit to keep the python side of the Bridge from consuming 100% of the CPU 2014-08-28 13:25:57 +02:00
Claudio Indellicati 7ce32946a9 Minor changes (libraries descriptions). 2014-07-30 12:32:45 +02:00
Cristian Maglie 8131af93dd Fixed wrong return value in FileIO::size()
Fixes #2203
2014-07-24 12:19:13 +02:00
Fede85 b02e85ceb2 modified sentences in library.properties files 2014-07-18 19:41:34 +02:00
Federico Fissore 641ea440ff Merge pull request #2170 from arduino/ide-1.5.x-httpclient-post
Added POST to HttpClient
2014-07-08 16:22:56 +02:00
Federico Fissore d132bc9d2b Bridge, TemperatureWebPanel example: mention that the REST API must be "open" 2014-07-08 09:34:22 +02:00
Federico Fissore b3ff7a76d7 Bridge, TemperatureWebPanel example: mention that the example must be uploaded via wifi 2014-07-08 09:32:22 +02:00
Mark Jones c7e5e7cbfe Added POST to HttpClient
Added POST to HttpClient and also the ability to set a header (for API
Keys) for GET and POST.
2014-07-07 20:47:17 +02:00
Federico Fissore c387f87329 Corrected typos: Yun -> Yún 2014-05-30 12:17:09 +02:00
Cristian Maglie 74b853bf99 Improved YunSerialTerminal
Removing calls to Serial.available() adds more CPU time to better
handle a sustained 250kbps flow
2014-05-30 11:21:50 +02:00
Federico Fissore 61826901ae Added [no]checkSSL method that sets an "insecure" boolean flag.
If insecure, "-k" parameter is added to curl and SSL certificates
are not checked
2014-05-21 11:15:09 +02:00
Federico Fissore cdf70e501d Adds parameter "-k" to every way of calling curl, hence allowing
calling https URLs without checking for the validity of SSL
certificates.
While this makes it a little insecure, nothing else can be done
while keeping the HTTPClient API simple: openwrt does not have a
SSL certificates bundle
Advanced users concerned about security should call "curl" on
their own using Process, supplying parameters such as "--cacert"
Fixes #1860
2014-05-21 09:47:49 +02:00
Manuel Rabade c5010dde39 acording to the docs HttpClient::ready should return the inverse of Process::running() 2014-05-12 02:12:02 -05:00
Fede85 586e7a2959 added the MailboxReadMessage example for the Yun 2014-05-02 17:41:18 +02:00
Federico Fissore b2500b3b85 Temboo: library and examples update 2014-04-03 19:56:46 +02:00
Federico Fissore 88ed5d53a6 Spacebrew update 2014-04-01 09:35:56 +02:00
Fede85 475ee9fde5 [YunSerialTerminal example]: corrected the CRC in the Bridge shutdown command 2014-03-13 11:44:44 +01:00
Cristian Maglie 76ded605ff Updated all library.properties to 1.5 rev2 lib format 2014-02-18 22:32:24 +01:00
bobh66 d8c30c36d4 Add error handling and optimize FileIO::doBuffer() in the Bridge library
Update FileIO::doBuffer() to check for TRANSFER_TIMEOUT and set buffered to 0, and optimize by incrementing readPos instead of moving all of the data one byte to the left in the buffer to skip the error code byte.
2014-01-04 18:05:06 -06:00