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 feedbackPGPredefinedFeedbackError
- Negative feedbackPGPredefinedFeedbackNeutralYellow
- Neutral feedback with yellow LED colorPGPredefinedFeedbackNeutralPurple
- Neutral feedback with purple LED colorPGPredefinedFeedbackNeutralCyan
- Neutral feedback color with cyan LED color.
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 }];
let feedbackManager = central.feedbackManager let feedbackRequest = PGFeedbackRequest(feedback: .success) let command = PGCommand(feedbackRequest: feedbackRequest) feedbackManager?.playFeedbackSequence(withFeedbackCommand: command, completionHandler: { (error) in //handle response })