Marcus Shawcroft
d29c33e73e
Merge pull request #100 from meriac/master
...
Updated to latest uvisor-mbed-lib version
2016-05-18 09:26:13 +01:00
Sam Grove
7d541a9cbd
Merge pull request #104 from theotherjimmy/buffered-serial-printf
...
removed warning about unsigned to signed cast
2016-05-18 02:02:59 -05:00
Sam Grove
f77d9e73ad
Merge pull request #95 from screamerbg/master
...
Build system exclude folders containing .buildignore file
2016-05-18 01:59:56 -05:00
Bogdan Marinescu
7634adbf8c
Merge pull request #105 from ARMmbed/revert-92-master
...
Revert "Adding configuration-store & flash-abstraction components for CFSTORE integration"
2016-05-17 23:21:18 +03:00
Bogdan Marinescu
09913f8859
Revert "Adding configuration-store & flash-abstraction components for CFSTORE integration"
2016-05-17 23:20:39 +03:00
Mihail Stoyanov
faa9ce76af
Removed fixes intended for different PR
2016-05-17 19:46:42 +01:00
Jimmy Brisson
59ed1bef61
removed warning about unsigned to signed cast
2016-05-17 13:35:24 -05:00
Milosch Meriac
c5a5774b60
updated to latest uvisor-mbed-lib version
2016-05-17 18:27:27 +01:00
Bogdan Marinescu
a5800ef975
Merge pull request #92 from simonqhughes/master
...
Adding configuration-store & flash-abstraction components for CFSTORE integration
2016-05-17 18:53:14 +03:00
geky
6ccb19304d
Merge pull request #99 from c1728p9/fix_ipv6_addr
...
Fix SocketAddress constructor to support ipv6
2016-05-17 10:46:23 -05:00
Simon Hughes
aebc3f8433
Changing lib files:
...
- configuration-store.lib points to branch sdh_dev_mx2_20160513 of armmbed/configuration-store.git
- flash-abstraction.lib points to branch master of fork simonqhughes/flash-abstraction.git
2016-05-17 16:25:45 +01:00
Russ Butler
64cd1f3dfb
Fix SocketAddress constructor to support ipv6
...
Fix typo causing ipv6 addresses in the constructor to fail.
2016-05-17 08:24:10 -05:00
Simon Hughes
e812489000
New versions of configuration-store and flash-abstraction lib files restructuring mbedosV3 test into TESTS directories.
2016-05-17 11:10:22 +01:00
Sam Grove
cde78ec095
Merge pull request #94 from geky/callback
...
Improve FunctionPointer class
2016-05-16 10:24:47 -07:00
Christopher Haster
dd6a24b76d
Adopt Callback class in NetworkSocketAPI
2016-05-16 11:48:09 -05:00
Sam Grove
b7cdc204fd
Merge pull request #88 from geky/nsapi-changes
...
Update Network Socket API
2016-05-16 09:21:15 -07:00
Mihail Stoyanov
b57fbf4c68
Exclude folders from build that contain .buildignore file (part of de-fork of mbed HAL+RTOS)
2016-05-16 13:06:54 +01:00
Russ Butler
b15e2c293e
Add synchronization to the network socket API
...
Add mutexes to protect the network socket API. Also use semaphores to
wait for read/write events. Also fix a typo in the comments for
timeout.
2016-05-15 18:03:48 -05:00
Russ Butler
c8fc4dff6d
Update Nanostack related libs
...
Update library files related to Nanostack to bring in Network Socket
API support.
2016-05-15 18:03:40 -05:00
Christopher Haster
e1c42a3afc
Adopt Callback class in rtos Threads
2016-05-13 19:07:45 -05:00
Christopher Haster
4984077d07
Adopt Callback class in hal
2016-05-13 19:07:45 -05:00
Christopher Haster
bf498de127
Add backward compatiblity for FunctionPointer class using Callback
...
effectively:
typedef Callback<R(A)> FunctionPointerArg1<R,A>
typedef Callback<R()> FunctionPointerArg1<R,void>
typedef Callback<R()> FunctionPointer
typedef Callback<R()> event_callback_t
2016-05-13 19:07:45 -05:00
Christopher Haster
8b330ae8a6
Add callback tests
2016-05-13 19:07:45 -05:00
Christopher Haster
8e42a32d00
Add Callback, an improved FunctionPointer class
...
- Adopt C++11 style template arguments, requires rename to Callback
- Add constructor for C style callback functions
- Add constructor for Callbacks
- Add static function for passing to C style callbacks
2016-05-13 19:07:45 -05:00
Christopher Haster
83f65c0d3a
Add rudimentary support for server side
...
mirrored from:
https://developer.mbed.org/teams/NetworkSocketAPI/code/LWIPInterface/
2016-05-13 11:41:20 -05:00
Christopher Haster
9e415df196
Match changes to NSAPI in LWIPInterface
...
mirrored from:
https://developer.mbed.org/teams/NetworkSocketAPI/code/LWIPInterface/
2016-05-13 11:41:19 -05:00
Christopher Haster
4684173778
Match changes to NSAPI in ESP8266Interface
...
mirrored from:
https://developer.mbed.org/teams/components/code/ESP8266Interface/
2016-05-13 11:41:18 -05:00
Christopher Haster
7d9b5e6f76
Small bug fixes
...
mirrored from:
https://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/
- Fix bug with SocketAddress init per @c1728p9
- Fix issue with not passing interface through accept call
- Fix port issue in SocketAddress constructor
2016-05-13 11:41:17 -05:00
Christopher Haster
8304124a63
Add NSAPI_ERROR_PARAMETER
...
per @c1728p9
2016-05-13 11:41:16 -05:00
Christopher Haster
bcab0fcef5
Added WFI to save power in temporary polling implementation
2016-05-13 11:41:15 -05:00
Christopher Haster
5475dd0404
Consolidate set_timeout/set_blocking behaviour
...
- Avoids ambiguity when both are used
- Matches Python behaviour
2016-05-13 11:41:14 -05:00
Christopher Haster
d17fa4faad
Separate Stack/Interface concept into two distinct classes
2016-05-13 11:41:13 -05:00
Christopher Haster
49ba2be3a7
Add standardized stack options
2016-05-13 11:41:11 -05:00
Christopher Haster
893dfec7e6
Added workaround for bug in newlib sscanf
...
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1399224
2016-05-13 11:41:10 -05:00
Russ Butler
57de57efc5
Update libraries to match the latest NSAPI
...
Update the library references for mbed-client-classic and
sal-iface-6lowpan-morpheus-private.
2016-05-13 11:41:09 -05:00
Christopher Haster
f4526e5b73
Fix race condition in socket close
2016-05-13 11:41:08 -05:00
Christopher Haster
16929af278
Rename Interface -> Stack
...
NetworkInterface -> NetworkStack
EthernetInterface -> EthernetStack
WiFiInterface -> WiFiStack
CellularInterface -> CellularStack
MeshInterface -> MeshStack
2016-05-13 11:41:07 -05:00
Christopher Haster
55f7d29fc3
Revised documentation for Interface classes
2016-05-13 11:41:06 -05:00
Christopher Haster
d43f8706d3
Revisited documentation for Socket API
2016-05-13 11:41:05 -05:00
Christopher Haster
eab6d775ac
Removed is_connected function
...
- Not supported by TCP/UDP protocols
- Uncommon and less useful with proper error handling
2016-05-13 11:41:04 -05:00
Christopher Haster
50a9143478
Revisited documentation for NetworkInterface specific methods
2016-05-13 11:41:03 -05:00
Christopher Haster
59549cb4df
Standardized comment style
2016-05-13 11:41:02 -05:00
Christopher Haster
e762b04f64
Added support for shortened form ipv6 addresses
...
supported:
1.2.3.4
1:2:3:4:5:6:7:8
1:2::7:8
::
currently not supported:
1:2:3:4:5:6:1.2.3.4
2016-05-13 11:41:01 -05:00
Christopher Haster
525c7b361c
Revised stack specific configurations
...
Adds the following functions for direct configuration of interface
- (set|get)stackopt
- (set|get)sockopt
2016-05-13 11:41:00 -05:00
Christopher Haster
c4506dc1c0
Move bind to Socket
...
Bind can operate on any IP socket and is not specific to a protocol
2016-05-13 11:40:59 -05:00
Russ Butler
fa45131245
Fix ipv6 addr in SocketAddress
...
Correctly set and return the ipv6 address.
2016-05-13 11:40:58 -05:00
Christopher Haster
141b245dfc
Added better support for SocketAddress/string addresses/ports
2016-05-13 11:40:57 -05:00
Christopher Haster
d488f02f5e
Move to SocketAddress in gethostbyname
2016-05-13 11:40:55 -05:00
Christopher Haster
62bb777c1f
Added support for storing bytes directly in SocketAddress
...
Bytes are stored by default, however enough space is allocated in
a SocketAddress to generate the string representation if necessary.
Currently there is no support for shortened addresses
2016-05-13 11:40:54 -05:00
Christopher Haster
455f023949
Renamed NetworkInterface create/destroy methods to match Socket methods
...
- socket_create -> socket_open
- socket_destroy -> socket_close
2016-05-13 11:40:53 -05:00