# POSWIFIManagerDelegate Protocol Reference

Conforms to | NSObject
Declared in | POSWIFIManager.h

## Overview

Connect multiple devices. Use POSWIFIManager *manager = [[POSWIFIManager alloc] init] to instantiate the object, Save the manager and specify the corresponding manager when sending the command to send the command

### `– POSWIFIManager:didConnectedToHost:port:` required method

Successfully connected to the host

`- (void)POSWIFIManager:(POSWIFIManager *)manager didConnectedToHost:(NSString *)host port:(UInt16)port`

#### Parameters

`host` | ip address
`port` | The port number
`managerWiFi` | connection object management

#### Discussion

Successfully connected to the host

#### Declared In

`POSWIFIManager.h`

### `– POSWIFIManager:willDisconnectWithError:` required method

Disconnect

`- (void)POSWIFIManager:(POSWIFIManager *)manager willDisconnectWithError:(NSError *)error`

#### Parameters

`manager` | WiFi connection object management
`error` | error

#### Discussion

Disconnect

#### Declared In

`POSWIFIManager.h`

### `– POSWIFIManager:didReadData:tag:` required method

Receive the data returned by the printer

`- (void)POSWIFIManager:(POSWIFIManager *)manager didReadData:(NSData *)data tag:(long)tag`

#### Parameters

`manager` | Management object
`data` | Returned data
`tag` | tag

#### Discussion

Receive the data returned by the printer

#### Declared In

`POSWIFIManager.h`