Implementing the solution
Now that we are clear about the position estimation approach, we will see how to use Bosque to implement it as a cloud service, using the task list built in the previous section.
Getting the RSSI values detected by the receiver for the three known access points
First, we will write a Bosque program that receives the receiver's values and the access points' positions as x and y coordinates.
To do this, we should write a custom entrypoint
function as follows:
namespace NSMain; entrypoint function runner( rssi1: String, rssi2: String, rssi3: String, x1: String, x2: String, x3: String, y1: String, y2: String, y3: String ): Float64 { // Do something }
We may have noticed that we are using string types for our input parameters despite them representing numbers. This is because in Bosque, Float64
type is not supported yet in the entrypoint function...