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## map.createMapMseProfile
19
20createMapMseProfile(): MapMseProfile
21
22Creates a **MapMseProfile** instance.
23
24**System capability**: SystemCapability.Communication.Bluetooth.Core
25
26**Return value**
27
28| Type                           | Description        |
29| ----------------------------- | ---------- |
30| MapMseProfile | **MapMseProfile** instance created.|
31
32**Example**
33
34```js
35import { AsyncCallback, BusinessError } from '@kit.BasicServicesKit';
36try {
37    let mapMseProfile = map.createMapMseProfile();
38    console.info('MapMse success');
39} catch (err) {
40    console.error('errCode: ' + (err as BusinessError).code + ', errMessage: ' + (err as BusinessError).message);
41}
42```
43
44**Error codes**
45
46For details about the error codes, see [Bluetooth Error Codes](errorcode-bluetoothManager.md).
47
48| ID| Error Message|
49| -------- | ---------------------------- |
50|401 | Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed.                 |
51|801 | Capability not supported.          |
52
53## mapMseProfile
54
55Provides APIs for exchanging messages between devices. Before using any API of **mapMseProfile**, you need to create an instance of this class by using **createMapMseProfile()**.
56