[ncp] add UDP_PROXY_STREAM to dispatcher list and update documents (#2879)

This commit is contained in:
Abtin Keshavarzian
2018-07-11 20:16:56 -05:00
committed by Jonathan Hui
parent b5dd84222f
commit f065438111
3 changed files with 27 additions and 15 deletions
+16 -3
View File
@@ -295,7 +295,7 @@ Set to true to enable the native commissioner. It is mandatory before adding the
* Packed-Encoding: `b`
* Required capability: `CAP_THREAD_TMF_PROXY`
Set to true to enable the TMF proxy.
Set to true to enable the TMF proxy. This property is deprecated.
### PROP 5394: PROP_THREAD_TMF_PROXY_STREAM {#prop-thread-tmf-proxy-stream}
@@ -303,6 +303,8 @@ Set to true to enable the TMF proxy.
* Packed-Encoding: `dSS`
* Required capability: `CAP_THREAD_TMF_PROXY`
This property is deprecated. Please see `SPINEL_PROP_THREAD_UDP_PROXY_STREAM`.
Data per item is:
* `d`: CoAP frame
@@ -316,7 +318,6 @@ Fields: | Length | CoAP | locator | port
This property allows the host to send and receive TMF messages from
the NCP's RLOC address and support Thread-specific border router functions.
### PROP 5395: PROP_THREAD_DISOVERY_SCAN_JOINER_FLAG {#prop-thread-discovery-scan-joiner-flag}
* Type: Read-Write
@@ -570,7 +571,6 @@ Data per item is:
* `c`: Average RSSI (in dBm)
* `c`: Last RSSI (in dBm)
### PROP 5411: SPINEL_PROP_THREAD_ADDRESS_CACHE_TABLE (#prop-thread-address-cache-table)
* Type: Read-Only
@@ -583,3 +583,16 @@ Data per item is:
* `6` : Target IPv6 address
* `S` : RLOC16 of target
* `C` : Age (order of use, 0 indicates most recently used entry)
### PROP 5412: SPINEL_PROP_THREAD_UDP_PROXY_STREAM (#prop-thread-udp-proxy-stream)
* Type: Write-Stream
* Packed-Encoding: `dS6S`
* Required capability: `CAP_THREAD_UDP_PROXY`
This property helps exchange UDP packets with host.
`d`: UDP payload
`S`: Remote UDP port
`6`: Remote IPv6 address
`S`: Local UDP port
+3 -11
View File
@@ -551,11 +551,6 @@ NcpBase::PropertyHandler NcpBase::FindGetPropertyHandler(spinel_prop_key_t aKey)
handler = &NcpBase::HandlePropertyGet<SPINEL_PROP_THREAD_COMMISSIONER_ENABLED>;
break;
#endif
#if OPENTHREAD_ENABLE_TMF_PROXY
case SPINEL_PROP_THREAD_TMF_PROXY_ENABLED:
handler = &NcpBase::HandlePropertyGet<SPINEL_PROP_THREAD_TMF_PROXY_ENABLED>;
break;
#endif
#if OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB
case SPINEL_PROP_THREAD_STEERING_DATA:
handler = &NcpBase::HandlePropertyGet<SPINEL_PROP_THREAD_STEERING_DATA>;
@@ -817,12 +812,9 @@ NcpBase::PropertyHandler NcpBase::FindSetPropertyHandler(spinel_prop_key_t aKey)
handler = &NcpBase::HandlePropertySet<SPINEL_PROP_THREAD_STEERING_DATA>;
break;
#endif
#if OPENTHREAD_ENABLE_TMF_PROXY
case SPINEL_PROP_THREAD_TMF_PROXY_ENABLED:
handler = &NcpBase::HandlePropertySet<SPINEL_PROP_THREAD_TMF_PROXY_ENABLED>;
break;
case SPINEL_PROP_THREAD_TMF_PROXY_STREAM:
handler = &NcpBase::HandlePropertySet<SPINEL_PROP_THREAD_TMF_PROXY_STREAM>;
#if OPENTHREAD_ENABLE_UDP_PROXY
case SPINEL_PROP_THREAD_UDP_PROXY_STREAM:
handler = &NcpBase::HandlePropertySet<SPINEL_PROP_THREAD_UDP_PROXY_STREAM>;
break;
#endif
case SPINEL_PROP_THREAD_ACTIVE_DATASET:
+8 -1
View File
@@ -1131,13 +1131,19 @@ typedef enum {
/// Thread TMF proxy enable
/** Format `b`
* Required capability: `SPINEL_CAP_THREAD_TMF_PROXY`
*
* This property is deprecated.
*
* Default value is `false`.
*/
SPINEL_PROP_THREAD_TMF_PROXY_ENABLED = SPINEL_PROP_THREAD_EXT__BEGIN + 17,
/// Thread TMF proxy stream
/** Format `dSS`
* Required capability: `SPINEL_CAP_THREAD_TMF_PROXY`
*
* This property is deprecated. Please see `SPINEL_PROP_THREAD_UDP_PROXY_STREAM`.
*
*/
SPINEL_PROP_THREAD_TMF_PROXY_STREAM = SPINEL_PROP_THREAD_EXT__BEGIN + 18,
@@ -1397,6 +1403,7 @@ typedef enum {
/// Thread UDP proxy stream
/** Format `dS6S`
* Required capability: `SPINEL_CAP_THREAD_UDP_PROXY`
*
* This property helps exchange UDP packets with host.
*