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 iOS SDK

To trigger a feedback a connected scanner, PGCentarlManager provides the PGFeedbackManager property with the playFeedbackSequence method.

The method accepts a PGCommand 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 89. Objective C
PGFeedbackManager *feedbackManager = central.feedbackManager;

PGFeedbackRequest *feedbackRequest = [[PGFeedbackRequest alloc] initWithFeedback:PGPredefinedFeedbackSuccess];
PGCommand *command = [[PGCommand alloc] init:feedbackRequest];

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


Example 90. Swift
let feedbackManager = central.feedbackManager

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

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