Commit Graph

180 Commits

Author SHA1 Message Date
Ciaran Woodward 0c5850e7ba Fix CLI implementation of the child command (#1626)
* CLI fix for printing child list

In the previous implementation, if a child was not available at a
certain index, all children at greater indexes would not be
printed for a child list or child table command, despite still being
connected to the node.

This change modifies the logic so that if a child does not exist at
a given index, only that index is disgarded, and future indexes are
checked correctly.

* Made pretty

* Add ExitNow statement at end of table printing.

This prevents printing an error at the end of the table.
2017-04-19 09:02:51 -07:00
Buke Po fc931e9ecf fix coap client cli payload (#1621) 2017-04-18 18:18:00 -07:00
Buke Po d819521e10 print error message on cli failure (#1610) 2017-04-18 05:31:53 -07:00
CampbellWray 681fff9f94 Coap fixes (#1606)
* Fixes segmentation fault in POSIX version by removing coap message initialisation with NULL header

* Alters API so that there will be no attempt to create messages with NULL header
2017-04-17 21:25:58 -07:00
Jonathan Hui f4c40f4c8a Fix compiler warning and code style. (#1605) 2017-04-17 18:02:23 -07:00
Michael Morscher 6a520dd63c [CoAP] Adding CLI commands (#1539)
* [CoAP] Adding CLI commands

Adds CLI commands for a simple CoAP client and server with one resource
2017-04-11 09:02:42 -07:00
rongli 2ba9933882 not configure discovery scan duration (#1502) 2017-04-06 09:56:31 -07:00
Jonathan Hui 49ac7fbc2c Make VerifyOrExit() action argument optional. (#1554) 2017-04-05 09:44:22 -07:00
pvanhorn 02400eecb2 Create and use an enum for Route Config mPreference. (#1525) 2017-03-29 08:49:48 -07:00
Robert Quattlebaum 73564c399a Add implementations for strlcpy/strlcat when missing (#737)
This commit shows how to add implementations of missing functions for
platforms where those functions are not present. In this case we are
adding the `strlcpy()` and `strlcat()`, which are "safe" replacements
for `strncpy()` and `strncat()` that behave in a way more consistent
with developer expectations.

After this commit, adding additional replacements for missing
functions should be fairly straightforward.

[1]: http://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one
[2]: https://www.gnu.org/software/automake/manual/html_node/Libtool-Convenience-Libraries.html
2017-03-27 10:06:36 -07:00
Hubert Miś 68de8f669a [CoAP Server] Message deduplication (#1500)
* Message deduplication in CoAP server.

* Limit number of responses in CoAP server deduplication queue.
2017-03-23 02:01:58 -07:00
Łukasz Duda 3316daa43c Add initial implementation of DNS Client (#1460)
* [DNS] Initial DNS Client implementation.
2017-03-17 14:43:08 -07:00
Jonathan Hui 5cd94ef937 Use return instaed of {} after labels. (#1443) 2017-03-09 09:57:31 -08:00
Robert Lubos 746a40a340 Automatic Joiners removal in Commissioner (#1421)
* Implement automatic Joiner removal feature.

* Save some RAM in JoinerRouter class.

* Specify timeout for each Joiner separately.

* Update Windows API files.
2017-03-08 05:19:12 -08:00
Jonathan Hui 31b389fb4e Change otMessage type to not hide pointer. (#1416) 2017-03-02 12:43:59 -08:00
Jonathan Hui b490f2ef3e Icmp6 cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui a6dac9270c Diag API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui e919576978 Move include/platform to include/openthread/platform. 2017-03-02 10:24:55 -08:00
Jonathan Hui d0c687505b Move openthread.h to openthread/openthread.h. 2017-03-02 10:24:55 -08:00
Jonathan Hui 075bff327c Move openthread-types.h to openthread/types.h. 2017-03-02 10:24:55 -08:00
Jonathan Hui da35770140 CLI API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 7f680552eb Thread API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 52497fa45c Instance API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui da9b2978ad Operational Dataset API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 421878f468 Network Data API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 0746a44a7c Link API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 98da7f3166 IPv6 API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 669c792118 DHCPv6 Client and Server API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui e972443845 Commissioner and Joiner API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 1455b612f9 Message API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 10e5b9a38f UDP API cleanup. 2017-03-02 10:24:55 -08:00
Łukasz Duda eef6730773 Small fixes in CLI Readme.md (#1404) 2017-03-01 10:08:10 -08:00
Nick Banks e39d96a797 Build otCli for Windows (#1239)
* Initial changes

* Clean up for CLI design on Windows

* Use smart pointer instead of otFreeMemory directly.
2017-02-27 09:28:43 -08:00
Łukasz Duda 4f35cdb854 [ICMPv6] Allow application to register ICMPv6 handler. (#1380) 2017-02-24 12:13:59 -08:00
Łukasz Duda fb49b6a222 Move otPlatUartEnable to CLI or NCP init functions. (#1359) 2017-02-22 09:18:24 -08:00
Nick Banks 64f5ab43fc Add Thread Auto Start Support (#1268)
* Add Thread Auto Start Support

* Add compile-time option

* Return error in Windows API
2017-02-20 17:29:20 -08:00
Buke Po 75486af85d update README (#1349) 2017-02-19 23:11:18 -08:00
rongli fa04f1c4cb THCI: setMinDelayTimer() API (#1329) 2017-02-17 12:09:36 -08:00
Jonathan Hui 87bbf4a83a Move PSKc generation functionality to Commissioner role. (#1327) 2017-02-15 23:10:44 -08:00
Shu Chen bf21420cd0 Add PSKc generation feature support (#1165)
* implement PBKDF2 using AES-CMAC-PRF-128

* generate PSKc using PBKDF2, AES-CMAC-PRF-128

* expand "dataset pskc" cli to input PSKc source (passphrase, network name, extended panid)
2017-02-15 19:57:33 -08:00
Abtin Keshavarzian d236546304 Add return error case NotFound to otGetChildInfo (#1321)
- The method `otGetChildInfoByIndex()` is changed to return thread
  error `NotFound` when there is no valid child with given index.
- Usage of this method is updated in `NcpBase` and `cli` to iterate
  over all children.
2017-02-15 13:07:11 -08:00
Harry Morris 0cc27dd91d Gracefully handle invalid linkquality command (#1261)
linkquality cli command always expects at least a extended address
specifying the link. If no argument is provided then throw an error
and exit.
2017-02-15 09:12:43 -08:00
Jonathan Hui 960415285e Add args check to SetRouterSelectionJitter(). (#1296) 2017-02-10 04:17:38 -08:00
Jonathan Hui efc4599d62 Have router make two separate attempts to reconnect to current partition. (#1276) 2017-02-09 11:05:35 -08:00
rongli 6d011d04ea Prompt Error for unsupported cli commands (#1154) 2017-01-15 19:25:18 -08:00
Jonathan Hui c943da9b4b Add vendor information to JOIN_FIN.req message. (#1140) 2017-01-13 09:10:17 -08:00
Jonathan Hui d61b878d34 Remove Preferred and Valid Lifetimes from otNetifAddress. (#1110)
- Replace Preferred and Valid Lifetimes with a flag.
- Introduce new otDhcpAddress type for maintaining Preferred and Valid Lifetimes.
- Reduces RAM usage by 128 bytes.
2017-01-04 13:37:25 -08:00
Nick Banks 40df448702 Add Dhcp6 Client/Server Support to Windows Driver (#1084) 2017-01-03 18:29:05 -08:00
Jonathan Hui 64d49153bd Add callback to indicate when joiner operation completes. (#1094) 2016-12-27 08:06:18 -08:00
Jonathan Hui 5554a3fcb9 Initialize all member variables in constructors. (#1074) 2016-12-14 15:39:30 -08:00