Commit Graph

335 Commits

Author SHA1 Message Date
Buke Po 024c44de5c Add PSKc API (#1635)
* add pskc api

* add pskc cli

* add NCP api of PSKc

* apply PSKc from network

* implement PSKC api for windows

* add name for pskc property

* clear active and pending dataset when settings pskc
2017-04-27 16:32:34 -07:00
DuaneEllis-TI d65418c12f Add support for wrap_string.h and others (#1642) 2017-04-27 10:17:09 -07:00
Abtin Keshavarzian f392421d2c Update otThreadDiscover() to include input argument for setting Joiner flag. (#1658) 2017-04-26 11:10:51 -07:00
Shu Chen 0a830ecefe Reduce MTD code size by removing some unused MeshCoP features (#1361)
* Seperate FTD-only dataset APIs;

* Remove some unused MeshCoP functions from MTD build;

* Remove some unused CLI functions from MTD build.
2017-04-25 11:51:12 -07:00
rongli 030efbaf45 return the right error information for some cli commands (#1644) 2017-04-22 08:25:06 -07:00
DuaneEllis-TI 358ca8ee77 Support #1619 - MTD vrs FTD builds, and Makefile.am If/Else/Endif issues (#1620)
* Convert FTD/MTD methods and remove if/else/endif from Makefiles
2017-04-20 20:55:40 -07:00
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 d819521e10 print error message on cli failure (#1610) 2017-04-18 05:31:53 -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
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
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 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
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
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
rongli fa04f1c4cb THCI: setMinDelayTimer() API (#1329) 2017-02-17 12:09:36 -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
Łukasz Duda dbc1384db2 DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message. (#1062)
* DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message.
2016-12-13 10:22:57 -08:00
rongli d2695ab5f4 fix diagnostic feature and code cleanup (#1030)
* fix diagnostic feature and code cleanup
2016-12-02 09:02:16 -08:00
Jonathan Hui 9586cfb700 Initialize all member variables in constructors. (#1026) 2016-12-01 08:51:55 -08:00
Adam Eliot e40947eb6f Add separate counters for unicast and broadcast (#994)
* Added tx counts for unicast vs broadcast packets

* Added counters for Rx broadcast vs unicast packets
2016-11-22 08:41:27 -08:00
Xiao Ma 78047488b6 THCI: enhance commissioner session id. (#986) 2016-11-17 18:36:39 +08:00
Jonathan Hui d44f39769f Add ability to retrieve message and buffer counts for message queues. (#940) 2016-11-07 22:13:15 -08:00
Nick Banks 74a95f042d Windows API DLL (#882)
* VS Solution files and minor fixes.

* Move Tasklet into platform include file

* Refactor data path APIs into openthread-ip6.h
2016-11-04 09:28:17 -07:00