Changes

1,168 bytes added ,  15:35, 30 July 2020
no edit summary
Line 325: Line 325:     
=== StartBleScanForPaired ===
 
=== StartBleScanForPaired ===
 +
Takes a PID, a [[#BleAdvertisePacketParameter]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output.
    
=== StopBleScanForPaired ===
 
=== StopBleScanForPaired ===
 +
No input/output.
    
=== StartBleScanForSmartDevice ===
 
=== StartBleScanForSmartDevice ===
 +
Takes a PID, a [[#GattAttributeUuid]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output.
    
=== StopBleScanForSmartDevice ===
 
=== StopBleScanForSmartDevice ===
 +
No input/output.
    
=== GetBleScanResultsForSmartDevice ===
 
=== GetBleScanResultsForSmartDevice ===
 +
Takes a PID, a type-0x6 output buffer containing an array of [[#BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8.
    
=== AcquireBleConnectionEvent ===
 
=== AcquireBleConnectionEvent ===
 +
No input, returns an output u8 and an Event handle with EventClearMode=1.
 +
 +
sdknso will Abort if the output u8 is value 0.
    
=== BleConnect ===
 
=== BleConnect ===
 +
Takes a PID, an [[#Bluetooth_Driver_services#Address|Address]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output.
 +
 
=== BleDisconnect ===
 
=== BleDisconnect ===
 +
Takes an input u32, no output.
    
=== BleGetConnectionState ===
 
=== BleGetConnectionState ===
 +
Takes a PID, a type-0xA input buffer containing an array of [[#BleConnectionInfo]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8.
    
=== AcquireBlePairingEvent ===
 
=== AcquireBlePairingEvent ===
 +
No input, returns an output u8 and an Event handle with EventClearMode=1.
 +
 +
sdknso will Abort if the output u8 is value 0.
    
=== BlePairDevice ===
 
=== BlePairDevice ===
Line 383: Line 398:  
= BleScanResult =
 
= BleScanResult =
 
This is "nn::bluetooth::BleScanResult". This is a 0x148-byte struct.
 
This is "nn::bluetooth::BleScanResult". This is a 0x148-byte struct.
 +
 +
= BleConnectionInfo =
 +
This is "nn::bluetooth::BleConnectionInfo". This is a 0xC-byte struct.
    
[[Category:Services]]
 
[[Category:Services]]