-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help modifying code for NFC coffee detection window. #9
Comments
You need to call I would go into Then go into |
Expressing gratitude for your valuable suggestion @COM8 , I will endeavor to incorporate it and subsequently provide you with an update on its implementation. |
Is it possible in this way to retrieve the status of an NFC reader to determine if a user has attached their card, prior to initiating a product request on a coffee machine? Specifically, the desired behavior is to restrict product requests until the user's card has been detected by the NFC reader. Although modifications were made to enable the NFC reader window to appear when a product is selected, the system is still initiating the UUID call for the product request without waiting for the card to be detected. Upon attaching an NFC card, the system is displaying the NFC card window again. This issue may be due to a my lack of familiarity with GTK 😃 |
The NFC card reader flow is as follows:
What you probably want is to lock the coffee maker in between, so the user can not make beverages either via the screen, or by pressing a button on the coffee maker it self. Take a look at protocol-bt-cpp/src/include/jutta_bt_proto/CoffeeMaker.hpp Lines 175 to 182 in e7876b8
I hope this helps since I did not totally understand what your issue is. |
I appreciate your time and prompt response. Please accept my apologies if the description of my problem or issue was difficult to understand.
I hope that I have provided a clear and comprehensive understanding of the matter at hand. |
Aha! Now it makes sense. I will try to reply tomorrow once I'm back from work again. |
Great, I look forward to hearing back from you tomorrow. Have a productive day! |
OK here is how I would do it:
Hope this rough sketch helps you. |
I sincerely appreciate your explanation and your time. I now have a clear understanding. Thank you very much for your assistance. I'll try to implement it. |
I have successfully implemented the steps you specified. However, I have encountered a minor issue whereby the NFC detection window is hiden when I attach the card to the NFC reader, and subsequently reappears. It appears that the on_coffee_button_clicked() function is being invoked again as a result. |
I intend to modify the source codebase to include the opening of the NFC detection window every time a coffee request is made. I would appreciate it if you could provide me with instructions on the specific part of the codebase where these modifications should be made. Based on my understanding, it seems likely that the changes will need to be made within the CoffeeSelectionWidget.cpp file on_coffee_button_clicked() function, but I am open to any guidance or recommendations you may have. Thanks in advance.
The text was updated successfully, but these errors were encountered: