Skip to main content

ProGlove Documentation

Worker feedback

The Worker Feedback feature enables you to send messages to the connected devices in order to play specific feedback sequences. Use it to trigger your scanner's feedback profiles asynchronously to notify workers about an event to enhance their workflow and help with daily tasks completion.

Worker Feedback commands, like all commands that trigger an action on a scanner, are queued in the ConnectSDK by default. To learn more, see Queueing behavior.

Trigger feedback using SDK

To trigger feedback back to a connected scanner using the INSIGHT Mobile (iOS) and (watchOS) SDK, PGCentarlManager provides the PGFeedbackManager property with the playFeedbackSequence method.

The method accepts a PGCommand initialized with PGFeedbackRequest data containing the PGPredefinedFeedback ID. If the request fails, an Error object will be returned via the completion handler block.

Available PGPredefinedFeedback IDs are:

  • PGPredefinedFeedbackSuccess - Positive feedback

  • PGPredefinedFeedbackError - Negative feedback

  • PGPredefinedFeedbackNeutralYellow - Neutral feedback with yellow LED color

  • PGPredefinedFeedbackNeutralPurple - Neutral feedback with purple LED color

  • PGPredefinedFeedbackNeutralCyan - Neutral feedback color with cyan LED color.

Example 158. Objective C
PGFeedbackManager *feedbackManager = central.feedbackManager;

PGFeedbackRequest *feedbackRequest = [[PGFeedbackRequest alloc] initWithFeedback:PGPredefinedFeedbackSuccess];
PGCommandParams *commandParams = [PGCommandParams new];
PGCommand *command = [[PGCommand alloc] initWithFeedbackRequest:feedbackRequest params:commandParams];

[feedbackManager playFeedbackSequenceWithFeedbackCommand:command completionHandler:^(NSError * _Nullable error) {
    //handle response
}];


Example 159. Swift
let feedbackManager = central.feedbackManager

let feedbackRequest = PGFeedbackRequest(feedback: .success)
let command = PGCommand(feedbackRequest: feedbackRequest)

feedbackManager?.playFeedbackSequence(withFeedbackCommand: command, completionHandler: { (error) in
    //handle response
})