10-31-2022, 05:45 PM
No, there is no better solution at the moment. I would suggest to use the analysis blocks to add metadata to your data submission so you can easily recognize the submission that should be discarded (you could for example submit the result from the timer-block).
The could not parse JSON probably occurs because phyphox tries to parse the result to be written back to the buffers. You can either set the conversion attribute to conversion="none" to discard any response or let your server give a meaningful response that you can show to the user. For example you can respond with {"result": 1}, write it to a phyphox buffer and map different codes to different messages like "submission received" in a view element using its "map" node.
The could not parse JSON probably occurs because phyphox tries to parse the result to be written back to the buffers. You can either set the conversion attribute to conversion="none" to discard any response or let your server give a meaningful response that you can show to the user. For example you can respond with {"result": 1}, write it to a phyphox buffer and map different codes to different messages like "submission received" in a view element using its "map" node.