1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-05 20:46:08 +01:00
Commit Graph

29 Commits

Author SHA1 Message Date
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
f118dee688 Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904 2015-04-30 16:32:32 +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
arve0
ff48ee4c5b do not trust received msg length to read forever 2015-03-16 21:23:01 +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
Cristian Maglie
8131af93dd Fixed wrong return value in FileIO::size()
Fixes #2203
2014-07-24 12:19:13 +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
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
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
Cristian Maglie
583dafb576 Fixed return value of Bridge::get(..) (returning 0 also with valid data len >0) 2013-11-25 23:08:40 +01:00
Cristian Maglie
fe6295e124 Implemented multi-byte read in File::read of Bridge library. 2013-11-22 16:33:07 +01:00
Cristian Maglie
e5e9d536ab Fixed typo 2013-11-22 15:04:51 +01:00
Cristian Maglie
fcb20ea80c Added missing File::size() method to Bridge. 2013-11-22 15:04:23 +01:00
Cristian Maglie
bc584744f6 Detect version of bridge.py running on the Yun. 2013-11-22 14:34:43 +01:00
Cristian Maglie
258c7af469 Bridge library is now platform independent. 2013-11-15 12:54:59 +01:00
Federico Fissore
00bdd3df03 Run new astyle formatter against libs Bridge, SpacebrewYun and Temboo 2013-10-21 10:13:31 +02:00
Federico Fissore
fdf10eb663 Better parametric Bridge.begin() 2013-10-18 09:31:07 +02:00
Cristian Maglie
ca90bf75cb Bridge: Increased timeout when receiving "lenght" field.
Fixes a weird timing issue:
http://forum.arduino.cc/index.php?topic=188955.0
2013-09-21 23:47:37 +02:00
Cristian Maglie
43477bd9d6 Merge pull request #1583 from cow77/ide-1.5.x
Makes it possible to link Bridge to another linux-system.
2013-09-21 12:01:45 -07:00
cow77
b0941ad5c9 Makes it possible to link to another linux-system, not running with
250000 (not Yun, but f.i. an Arduino mega2560 with a modified/expanded
WR703N).

The default could stay at 250000 (Yun).
2013-09-20 17:09:44 +02:00
Cristian Maglie
be936dd590 Fixed buffer overflow in File::doBuffer() (dreggy)
Fixes #1580
2013-09-19 16:22:12 +02:00
Fede85
81338e245b Bridge library to the 1.5 format 2013-09-06 15:38:07 +02:00