1# @ohos.bluetooth.map (Bluetooth MAP Module) 2 3The **bluetooth.map** module provides APIs for exchanging messages between devices using the Bluetooth Message Access Profile (MAP). 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8 9 10 11## Modules to Import 12 13```js 14import { map } from '@kit.ConnectivityKit'; 15``` 16 17 18## BaseProfile 19 20type BaseProfile = baseProfile.BaseProfile 21 22**BaseProfile** API definition. 23 24**System capability**: SystemCapability.Communication.Bluetooth.Core 25 26| Type | Description | 27| ----------------------------- | ---------- | 28| [baseProfile.BaseProfile](js-apis-bluetooth-baseProfile.md#baseprofile) | **BaseProfile** API definition.| 29 30 31## map.createMapMseProfile 32 33createMapMseProfile(): MapMseProfile 34 35Creates a **MapMseProfile** instance. 36 37**System capability**: SystemCapability.Communication.Bluetooth.Core 38 39**Return value** 40 41| Type | Description | 42| ----------------------------- | ---------- | 43| MapMseProfile | **MapMseProfile** instance created.| 44 45**Example** 46 47```js 48import { AsyncCallback, BusinessError } from '@kit.BasicServicesKit'; 49try { 50 let mapMseProfile = map.createMapMseProfile(); 51 console.info('MapMse success'); 52} catch (err) { 53 console.error('errCode: ' + (err as BusinessError).code + ', errMessage: ' + (err as BusinessError).message); 54} 55``` 56 57**Error codes** 58 59For details about the error codes, see [Universal Error Codes](../errorcode-universal.md). 60 61| ID| Error Message| 62| -------- | ---------------------------- | 63|401 | Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | 64|801 | Capability not supported. | 65 66## mapMseProfile 67 68Provides APIs for exchanging messages between devices. Before using any API of **mapMseProfile**, you need to create an instance of this class by using [createMapMseProfile()](#mapcreatemapmseprofile). 69